From 21ee718329e66a201643b1a4e901caae156c72e4 Mon Sep 17 00:00:00 2001 From: david Date: Sun, 11 Nov 2007 19:34:19 +0000 Subject: [PATCH] Check for sys/sockio.h in configure and include sys/sockio.h in tcpip.cc. This is where SIOCGIFCONF is on Solaris 9. --- configure | 3 ++- configure.ac | 2 +- tcpip.cc | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) 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