summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in.in2
-rw-r--r--ext/standard/fsock.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.in.in b/configure.in.in
index 8b3272b1a6..8e1086c4cc 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -251,7 +251,7 @@ else
fi
AC_MISSING_FCLOSE_DECL
dnl QNX requires unix.h to allow functions in libunix to work properly
-AC_CHECK_HEADERS(fcntl.h unistd.h crypt.h sys/file.h memory.h pwd.h grp.h sys/socket.h sys/wait.h syslog.h string.h sys/varargs.h stdarg.h sys/time.h signal.h netinet/in.h dlfcn.h limits.h sys/types.h unix.h arpa/inet.h locale.h)
+AC_CHECK_HEADERS(fcntl.h unistd.h crypt.h sys/file.h memory.h pwd.h grp.h sys/socket.h sys/wait.h syslog.h string.h sys/varargs.h stdarg.h sys/time.h signal.h netinet/in.h dlfcn.h limits.h sys/types.h unix.h arpa/inet.h locale.h sys/select.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_STRUCT_TM
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c
index 05401f5f34..c23ae5eef9 100644
--- a/ext/standard/fsock.c
+++ b/ext/standard/fsock.c
@@ -55,6 +55,9 @@
#if defined(AF_UNIX)
#include <sys/un.h>
#endif
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#include <string.h>
#include <errno.h>