Remove unneded includes in autoconf tesst and add possibly needed one. Thanks to Netocrat.

darcs-hash:20060810192359-ac50b-8e38e24ada59928cf6f37e7ed625fe40a34fd5d7.gz
This commit is contained in:
axel 2006-08-11 05:23:59 +10:00
parent 4b0810d7e9
commit 441c109afb

View file

@ -304,9 +304,6 @@ fi
AC_MSG_CHECKING([if struct winsize and TIOCGWINSZ exist])
AC_LINK_IFELSE(
[AC_LANG_PROGRAM([
#include <sys/types.h>
#include <signal.h>
#ifdef HAVE_SYS_TERMIOS_H
#include <sys/termios.h>
#endif
@ -315,8 +312,8 @@ AC_LINK_IFELSE(
#include <sys/ioctl.h>
#endif
#ifdef HAVE_SIGINFO_H
#include <siginfo.h>
#ifdef HAVE_STROPTS_H
#include <stropts.h>
#endif],
[struct winsize termsize = {0}; TIOCGWINSZ;])],
[AC_MSG_RESULT(yes); AC_DEFINE([HAVE_WINSIZE], [1], [Define to 1 if the winsize struct and TIOCGWINSZ macro exist])],