diff options
author | Harry Sintonen <sintonen@iki.fi> | 2020-03-30 16:52:43 +0300 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-03-31 10:59:06 +0200 |
commit | 7a71965e9761f80aa4508472c5b1e3ab03ba018a (patch) | |
tree | 1c2e814c559407fc853f21ffbf7e4bdd55549ee9 /acinclude.m4 | |
parent | 14dd0c020072c161827a75e3a4a236f134a8960c (diff) | |
download | curl-7a71965e9761f80aa4508472c5b1e3ab03ba018a.tar.gz |
build: fixed build for systems with select() in unistd.h
Closes #5169
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 3ad55c388..089449bac 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -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> |