From: Adam Borowski <kilobyte@angband.pl>
Date: Sat, 25 Jan 2025 15:35:56 +0100
Subject: WINSZ change in ttyrec.c (getslave)

Bug-Debian: http://bugs.debian.org/472463
Last-Update: 2025-01-25
---
 ttyrec.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/ttyrec.c b/ttyrec.c
index 171d0ff..c0315dd 100644
--- a/ttyrec.c
+++ b/ttyrec.c
@@ -1890,13 +1890,6 @@ void getslave(void)
             fail();
         }
 #  endif
-        if (parent_stdin_isatty)
-        {
-            if (ioctl(0, TIOCGWINSZ, (char *)&parent_stdin_winsize))
-            {
-                perror("ioctl(0, TIOCGWINSZ)");
-            }
-        }
     }
 # endif /* !HAVE_isastream */
 #elif !defined(HAVE_openpty) /* !HAVE_grantpt */
@@ -1907,6 +1900,7 @@ void getslave(void)
         perror(line);
         fail();
     }
+#endif /* HAVE_grantpt */
     if (parent_stdin_isatty)
     {
         if (tcsetattr(slave, TCSAFLUSH, &parent_stdin_termios))
@@ -1918,7 +1912,6 @@ void getslave(void)
             perror("ioctl(slave, TIOCSWINSZ, parent_stdin_winsize)");
         }
     }
-#endif /* HAVE_grantpt */
 }
 
 
