From 146add0ed331f70114ece65921f425fc67c5c905 Mon Sep 17 00:00:00 2001 From: Andrew Wood Date: Sun, 30 Jul 2023 16:54:35 +0100 Subject: [PATCH] Check for termios.h so that HAVE_TERMIOS_H is defined, otherwise terminal size detection is broken on Cygwin (issue GH#72). --- autoconf/configure.in | 1 + autoconf/header.in | 3 +++ 2 files changed, 4 insertions(+) diff --git a/autoconf/configure.in b/autoconf/configure.in index aedcb4b..34219ce 100644 --- a/autoconf/configure.in +++ b/autoconf/configure.in @@ -41,6 +41,7 @@ AC_CHECK_FUNCS(fdatasync) AC_CHECK_FUNCS(fpathconf sysconf posix_memalign) AC_CHECK_HEADERS(limits.h) AC_CHECK_HEADERS(wctype.h) +AC_CHECK_HEADERS(termios.h) AC_ARG_ENABLE(debugging, [ --enable-debugging compile with debugging support], diff --git a/autoconf/header.in b/autoconf/header.in index b65c481..426b16e 100644 --- a/autoconf/header.in +++ b/autoconf/header.in @@ -108,6 +108,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H +/* Define to 1 if you have the header file. */ +#undef HAVE_TERMIOS_H + /* Define to 1 if you have the header file. */ #undef HAVE_UNISTD_H