diff --git a/configure.ac b/configure.ac index e22927ba7..4678be77e 100644 --- a/configure.ac +++ b/configure.ac @@ -304,9 +304,6 @@ fi AC_MSG_CHECKING([if struct winsize and TIOCGWINSZ exist]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([ -#include -#include - #ifdef HAVE_SYS_TERMIOS_H #include #endif @@ -315,8 +312,8 @@ AC_LINK_IFELSE( #include #endif -#ifdef HAVE_SIGINFO_H -#include +#ifdef HAVE_STROPTS_H +#include #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])],