]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: fixed build for systems with select() in unistd.h
authorHarry Sintonen <sintonen@iki.fi>
Mon, 30 Mar 2020 13:52:43 +0000 (16:52 +0300)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 31 Mar 2020 08:59:06 +0000 (10:59 +0200)
Closes #5169

acinclude.m4
configure.ac
lib/dict.c
lib/select.c
lib/transfer.c
src/tool_operate.c
src/tool_sleep.c
tests/libtest/test.h

index 3ad55c3885914fc99308b70ce4a31686d87f2d3c..089449bac4ec4e94a8b1c57bc35e32a6451366f3 100644 (file)
@@ -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>
 #endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
@@ -1950,6 +1952,8 @@ struct Library *SocketBase = NULL;
 #endif
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
index 31fc8ffb7c1aa646bf9cc1c787269f52e0916e42..90a678ec8c125af53b810a6bb3a97b9e9f59f662 100755 (executable)
@@ -3887,6 +3887,8 @@ dnl default includes
 #endif
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 #ifdef HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
index 208a2336fde5704c6038feacf153b99d6285ebb5..e42165a9e64712ec38561d379888b262c6160375 100644 (file)
@@ -46,6 +46,8 @@
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 
 #include "urldata.h"
index 1ab023934235cd228794e722bae525255dfbd988..857e7f698d0cd0c9d50993fdaebdc31b184b8e4d 100644 (file)
@@ -24,6 +24,8 @@
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 
 #if !defined(HAVE_SELECT) && !defined(HAVE_POLL_FINE)
index 72168336a1a001754fa589b1389c7a257fbda3f1..27c984f8f89721afeaeba7e3480891c16792a44d 100644 (file)
@@ -48,6 +48,8 @@
 
 #ifdef HAVE_SYS_SELECT_H
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 
 #ifndef HAVE_SOCKET
index 3c7dd6829fdbe86b2eb720a2e8288e47dacfac3d..e1c9c6251d78f82dad894ea1581546dc1e2e5992 100644 (file)
@@ -31,6 +31,8 @@
 
 #ifdef HAVE_SYS_SELECT_H
 #  include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#  include <unistd.h>
 #endif
 
 #ifdef __VMS
index 67a54435f48ee23cf035e93817ad1a0a4a3a479b..e842ba93bca225ebd7d0f6f487c2ea97497da707 100644 (file)
@@ -23,6 +23,8 @@
 
 #ifdef HAVE_SYS_SELECT_H
 #  include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#  include <unistd.h>
 #endif
 
 #ifdef HAVE_POLL_H
index 4f2af415a89ad09160ce2d05664cdf3ae2d783b8..4806375a097a43a7dd9c43bc1ab65b8bf1c3be48 100644 (file)
@@ -36,6 +36,8 @@
 #ifdef HAVE_SYS_SELECT_H
 /* since so many tests use select(), we can just as well include it here */
 #include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+#include <unistd.h>
 #endif
 
 #ifdef TPF