Closes #5169
@@ -1887,6 +1887,8 @@ struct Library *SocketBase = NULL;
#endif
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
@@ -1950,6 +1952,8 @@ struct Library *SocketBase = NULL;
@@ -3887,6 +3887,8 @@ dnl default includes
@@ -46,6 +46,8 @@
#include "urldata.h"
@@ -24,6 +24,8 @@
#if !defined(HAVE_SELECT) && !defined(HAVE_POLL_FINE)
@@ -48,6 +48,8 @@
#ifndef HAVE_SOCKET
@@ -31,6 +31,8 @@
# include <sys/select.h>
+# include <unistd.h>
#ifdef __VMS
@@ -23,6 +23,8 @@
#ifdef HAVE_POLL_H
@@ -36,6 +36,8 @@
/* since so many tests use select(), we can just as well include it here */
#ifdef TPF