diff --git a/acinclude.m4 b/acinclude.m4 index 603128383c..cc97b6a661 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1403,7 +1403,11 @@ AC_CHECK_TYPE([socklen_t],[], AC_CHECK_TYPES(off64_t) AC_CHECK_TYPES([ssize_t], [], [], [#include ]) AC_CHECK_TYPES([struct winsize], [], [], [ -#include +#ifdef HAVE_TERMIOS_H +# include +#else +# include +#endif #include ]) AC_CHECK_TYPES([sa_family_t, socklen_t, struct sockaddr, struct sockaddr_storage],