[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 104/264: build: fixed build for systems with select() in unistd.
From: |
gnunet |
Subject: |
[gnurl] 104/264: build: fixed build for systems with select() in unistd.h |
Date: |
Thu, 30 Apr 2020 16:06:47 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 7a71965e9761f80aa4508472c5b1e3ab03ba018a
Author: Harry Sintonen <address@hidden>
AuthorDate: Mon Mar 30 16:52:43 2020 +0300
build: fixed build for systems with select() in unistd.h
Closes #5169
---
acinclude.m4 | 4 ++++
configure.ac | 2 ++
lib/dict.c | 2 ++
lib/select.c | 2 ++
lib/transfer.c | 2 ++
src/tool_operate.c | 2 ++
src/tool_sleep.c | 2 ++
tests/libtest/test.h | 2 ++
8 files changed, 18 insertions(+)
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>
diff --git a/configure.ac b/configure.ac
index 31fc8ffb7..90a678ec8 100755
--- a/configure.ac
+++ b/configure.ac
@@ -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>
diff --git a/lib/dict.c b/lib/dict.c
index 208a2336f..e42165a9e 100644
--- a/lib/dict.c
+++ b/lib/dict.c
@@ -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"
diff --git a/lib/select.c b/lib/select.c
index 1ab023934..857e7f698 100644
--- a/lib/select.c
+++ b/lib/select.c
@@ -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)
diff --git a/lib/transfer.c b/lib/transfer.c
index 72168336a..27c984f8f 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -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
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 3c7dd6829..e1c9c6251 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -31,6 +31,8 @@
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
+#elif defined(HAVE_UNISTD_H)
+# include <unistd.h>
#endif
#ifdef __VMS
diff --git a/src/tool_sleep.c b/src/tool_sleep.c
index 67a54435f..e842ba93b 100644
--- a/src/tool_sleep.c
+++ b/src/tool_sleep.c
@@ -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
diff --git a/tests/libtest/test.h b/tests/libtest/test.h
index 4f2af415a..4806375a0 100644
--- a/tests/libtest/test.h
+++ b/tests/libtest/test.h
@@ -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
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 119/264: KNOWN_BUGS: Store TLS context per transfer instead of per connection, (continued)
- [gnurl] 119/264: KNOWN_BUGS: Store TLS context per transfer instead of per connection, gnunet, 2020/04/30
- [gnurl] 92/264: KNOWN_BUGS: DoH leaks memory after followlocation, gnunet, 2020/04/30
- [gnurl] 98/264: SECURITY.md: minor rephrase, gnunet, 2020/04/30
- [gnurl] 125/264: appveyor: turn disabled tests into ignored result tests, gnunet, 2020/04/30
- [gnurl] 130/264: lib: never define CURL_CA_BUNDLE with a getenv, gnunet, 2020/04/30
- [gnurl] 127/264: appveyor: sort builds by type and add two new variants, gnunet, 2020/04/30
- [gnurl] 134/264: RELEASE-NOTES: synced, gnunet, 2020/04/30
- [gnurl] 103/264: memdebug: don't log free(NULL), gnunet, 2020/04/30
- [gnurl] 138/264: cleanup: correct copyright year range on a few files, gnunet, 2020/04/30
- [gnurl] 131/264: TODO: Option to make -Z merge lined based outputs on stdout, gnunet, 2020/04/30
- [gnurl] 104/264: build: fixed build for systems with select() in unistd.h,
gnunet <=
- [gnurl] 226/264: multi-ssl: reset the SSL backend on `Curl_global_cleanup()`, gnunet, 2020/04/30
- [gnurl] 227/264: tests: run the SOCKS test server on a dynamic port number, gnunet, 2020/04/30
- [gnurl] 223/264: runtests: always put test number in servercmd file, gnunet, 2020/04/30
- [gnurl] 205/264: tests: make 2006-2010 handle different port number lengths, gnunet, 2020/04/30
- [gnurl] 235/264: mqtt: make NOSTATE get within the debug name array, gnunet, 2020/04/30
- [gnurl] 233/264: tests: add %NOLISTENPORT and use it, gnunet, 2020/04/30
- [gnurl] 234/264: tests: run the RTSP test server on a dynamic port number, gnunet, 2020/04/30
- [gnurl] 232/264: mqtt: remove code with no purpose, gnunet, 2020/04/30
- [gnurl] 231/264: mqtt: fix Curl_read() error handling while reading remaining length, gnunet, 2020/04/30
- [gnurl] 247/264: tests/git: ignore mqttd and port files, gnunet, 2020/04/30