diff --git a/configure b/configure index c4445b9e7..88c0a4457 100755 --- a/configure +++ b/configure @@ -3735,7 +3735,8 @@ done -for ac_header in pwd.h termios.h + +for ac_header in pwd.h termios.h sys/sockio.h do as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` if eval "test \"\${$as_ac_Header+set}\" = set"; then diff --git a/configure.ac b/configure.ac index 1d396da42..f9d7bc940 100644 --- a/configure.ac +++ b/configure.ac @@ -166,7 +166,7 @@ esac AC_SUBST(LUAFLAGS) dnl Checks for header files. -AC_CHECK_HEADERS(pwd.h termios.h) +AC_CHECK_HEADERS(pwd.h termios.h sys/sockio.h) dnl If any socket libraries needed AC_SEARCH_LIBS(setsockopt, socket) diff --git a/tcpip.cc b/tcpip.cc index 2182883c4..a8e568d25 100644 --- a/tcpip.cc +++ b/tcpip.cc @@ -117,6 +117,10 @@ #include #endif +#if HAVE_SYS_SOCKIO_H +#include +#endif + #if HAVE_UNISTD_H /* #include */ #include