summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-08-25 23:42:38 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-08-25 23:42:38 +0200
commit9342109f7b30fed95df833873bc854115ae959b2 (patch)
treeed2632e91b6c6f141d17e9e5defd406535fd4c7f
parent3e1245504bcd40d98c2632c44bf881ba0df37a09 (diff)
downloadcurl-bagder/aix-needs-sys-poll_h.tar.gz
system.h: include sys/poll.h for AIXbagder/aix-needs-sys-poll_h
... to get the event/revent defines that might be used for the poll struct. Reported-by: Michael Smith Fixes #1828
-rw-r--r--include/curl/system.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/curl/system.h b/include/curl/system.h
index a6640ba52..39dae754c 100644
--- a/include/curl/system.h
+++ b/include/curl/system.h
@@ -377,6 +377,12 @@
# define CURL_TYPEOF_CURL_SOCKLEN_T int
#endif
+#ifdef _AIX
+/* AIX needs <sys/poll.h> */
+#define CURL_PULL_SYS_POLL_H
+#endif
+
+
/* CURL_PULL_WS2TCPIP_H is defined above when inclusion of header file */
/* ws2tcpip.h is required here to properly make type definitions below. */
#ifdef CURL_PULL_WS2TCPIP_H
@@ -397,6 +403,12 @@
# include <sys/socket.h>
#endif
+/* CURL_PULL_SYS_POLL_H is defined above when inclusion of header file */
+/* sys/poll.h is required here to properly make type definitions below. */
+#ifdef CURL_PULL_SYS_POLL_H
+# include <sys/poll.h>
+#endif
+
/* Data type definition of curl_socklen_t. */
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T
typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;