fix #H2326: support window resize on linux

From a bug report.  Applied the suggested change to enable window resize
support by default on linux.
This commit is contained in:
cohrs
2011-06-16 15:10:14 +00:00
parent 3453bf9a4d
commit ae1d8af5f3
2 changed files with 2 additions and 2 deletions

View 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

View 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