From: cohrs Date: Thu, 16 Jun 2011 15:10:14 +0000 (+0000) Subject: fix #H2326: support window resize on linux X-Git-Tag: MOVE2GIT~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae1d8af5f3e08777cd2d50e41d7aa338578a8971;p=nethack fix #H2326: support window resize on linux From a bug report. Applied the suggested change to enable window resize support by default on linux. --- diff --git a/doc/fixes34.4 b/doc/fixes34.4 index 710fc871c..8ff810032 100644 --- a/doc/fixes34.4 +++ b/doc/fixes34.4 @@ -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 diff --git a/sys/share/ioctl.c b/sys/share/ioctl.c index f8e8abc61..09c181be0 100644 --- a/sys/share/ioctl.c +++ b/sys/share/ioctl.c @@ -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 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