diff options
-rw-r--r-- | config.h.in | 3 | ||||
-rw-r--r-- | configure.in | 2 | ||||
-rw-r--r-- | interfaces.c | 3 |
3 files changed, 7 insertions, 1 deletions
diff --git a/config.h.in b/config.h.in index 187b8afc5..1b3fdb58f 100644 --- a/config.h.in +++ b/config.h.in @@ -316,6 +316,9 @@ #undef HAVE_TERMIOS_H #endif /* HAVE_TCGETATTR */ +/* Define if you have the <sys/sockio.h> header file. */ +#undef HAVE_SYS_SOCKIO_H + /* Define if you have the <sys/bsdtypes.h> header file. */ #undef HAVE_SYS_BSDTYPES_H diff --git a/configure.in b/configure.in index c4f4eb9c2..469d20f2f 100644 --- a/configure.in +++ b/configure.in @@ -1249,7 +1249,7 @@ dnl Header file checks dnl AC_HEADER_STDC AC_HEADER_DIRENT -AC_CHECK_HEADERS(string.h strings.h unistd.h malloc.h paths.h utime.h fnmatch.h netgroup.h sys/bsdtypes.h sys/select.h) +AC_CHECK_HEADERS(string.h strings.h unistd.h malloc.h paths.h utime.h fnmatch.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h) dnl ultrix termio/termios are broken if test "$OS" != "ultrix"; then AC_CHECK_HEADERS(termio.h) diff --git a/interfaces.c b/interfaces.c index 48b50c3cd..c57e98c85 100644 --- a/interfaces.c +++ b/interfaces.c @@ -50,6 +50,9 @@ #include <sys/socket.h> #include <sys/param.h> #include <sys/ioctl.h> +#if defined(HAVE_SYS_SOCKIO_H) && !defined(SIOCGIFCONF) +#include <sys/sockio.h> +#endif #ifdef _ISC #include <sys/stream.h> #include <sys/sioctl.h> |