[cygwin] fix compile issue for test

This commit is contained in:
Timothy Stack 2014-01-12 19:58:18 -08:00
parent 5e011a9203
commit 71cd99a2bf
4 changed files with 7 additions and 2 deletions

2
configure vendored
View File

@ -6015,7 +6015,7 @@ if test "$ac_res" != no; then :
fi
for ac_header in pty.h util.h zlib.h bzlib.h libutil.h
for ac_header in pty.h util.h zlib.h bzlib.h libutil.h sys/ttydefaults.h
do :
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"

View File

@ -83,7 +83,7 @@ AC_SEARCH_LIBS(dlopen, dl)
AC_SEARCH_LIBS(cur_term, tinfo)
AC_SEARCH_LIBS(Gpm_Open, gpm)
AC_CHECK_HEADERS(pty.h util.h zlib.h bzlib.h libutil.h)
AC_CHECK_HEADERS(pty.h util.h zlib.h bzlib.h libutil.h sys/ttydefaults.h)
AX_WITH_CURSES
AX_PATH_LIB_PCRE([], [AC_MSG_ERROR([pcre required to build])])

View File

@ -94,6 +94,9 @@
/* Define to 1 if you have the <sys/stat.h> header file. */
#undef HAVE_SYS_STAT_H
/* Define to 1 if you have the <sys/ttydefaults.h> header file. */
#undef HAVE_SYS_TTYDEFAULTS_H
/* Define to 1 if you have the <sys/types.h> header file. */
#undef HAVE_SYS_TYPES_H

View File

@ -36,7 +36,9 @@
#include <fcntl.h>
#include <signal.h>
#ifdef HAVE_SYS_TTYDEFAULTS_H
#include <sys/ttydefaults.h>
#endif
#include <algorithm>