]> granicus.if.org Git - nethack/commitdiff
fix #H2326: support window resize on linux
authorcohrs <cohrs>
Thu, 16 Jun 2011 15:10:14 +0000 (15:10 +0000)
committercohrs <cohrs>
Thu, 16 Jun 2011 15:10:14 +0000 (15:10 +0000)
From a bug report.  Applied the suggested change to enable window resize
support by default on linux.

doc/fixes34.4
sys/share/ioctl.c

index 710fc871c63c3e7b6b5bfb4334a10a2c02117996..8ff8100326bcb1813f558c6f1b9a1624fbde593d 100644 (file)
@@ -443,6 +443,7 @@ X11: fix typo in mouse click sanity check; result might have pointed to
        spurious location after window resizing
 unix/Qt: saved games were not found if nethack was built with prefixes in use
 FreeBSD: compilation problems on FreeBSD 6.1
+linux: compile support for TIOCGWINSZ by default
 
 
 General New Features
index f8e8abc6182071b7cb2594bb24aaf9613d0bd1c7..09c181be079d60731c22cfe6a2c4c7f6789c45a8 100644 (file)
@@ -1,5 +1,4 @@
 /* NetHack 3.5 ioctl.c $Date$  $Revision$ */
-/*     SCCS Id: @(#)ioctl.c    3.5     1990/22/02 */
 /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
 /* NetHack may be freely redistributed.  See license for details. */
 
@@ -41,7 +40,7 @@ struct ltchars ltchars0 = { -1, -1, -1, -1, -1, -1 }; /* turn all off */
 # ifdef POSIX_TYPES
 #include <termios.h>
 struct termios termio;
-#  if defined(BSD) || defined(_AIX32)
+#  if defined(BSD) || defined(_AIX32) || defined(__linux__)
 #   if defined(_AIX32) && !defined(_ALL_SOURCE)
 #    define _ALL_SOURCE
 #   endif