diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 4e2f0a01d0..46677aea09 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -41,6 +41,7 @@ check_include_file("portaudio.h" HAVE_PORTAUDIO_H) check_include_file("pwd.h" HAVE_PWD_H) check_include_file("sys/ioctl.h" HAVE_SYS_IOCTL_H) check_include_file("sys/param.h" HAVE_SYS_PARAM_H) +check_include_file("sys/select.h" HAVE_SYS_SELECT_H) check_include_file("sys/socket.h" HAVE_SYS_SOCKET_H) check_include_file("sys/sockio.h" HAVE_SYS_SOCKIO_H) check_include_file("sys/stat.h" HAVE_SYS_STAT_H) diff --git a/configure.ac b/configure.ac index c7bcc4b2e2..129f3cb99e 100644 --- a/configure.ac +++ b/configure.ac @@ -2111,7 +2111,7 @@ dnl environment such as Cygwin (although Wireshark should be built dnl natively rather than using Cygwin). dnl AC_CHECK_HEADERS(fcntl.h getopt.h grp.h inttypes.h netdb.h pwd.h unistd.h) -AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h) +AC_CHECK_HEADERS(sys/ioctl.h sys/param.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h) AC_CHECK_HEADERS(netinet/in.h) AC_CHECK_HEADERS(arpa/inet.h arpa/nameser.h) AC_CHECK_HEADERS(ifaddrs.h) diff --git a/wsutil/ws_pipe.c b/wsutil/ws_pipe.c index 8f21014503..2c0f28b89e 100644 --- a/wsutil/ws_pipe.c +++ b/wsutil/ws_pipe.c @@ -20,6 +20,9 @@ #include #else #include +#ifdef HAVE_SYS_SELECT_H +#include +#endif #endif #include