From: Daniel Stenberg Date: Fri, 25 Aug 2017 21:42:38 +0000 (+0200) Subject: system.h: include sys/poll.h for AIX X-Git-Tag: curl-7_56_0~197 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a84fcc4b59e8b78d2acc6febf44a43d6bc81b59;p=thirdparty%2Fcurl.git system.h: include sys/poll.h for AIX ... to get the event/revent defines that might be used for the poll struct. Reported-by: Michael Smith Fixes #1828 Closes #1833 --- diff --git a/include/curl/system.h b/include/curl/system.h index a6640ba52c..39dae754cd 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 */ +#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 #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 +#endif + /* Data type definition of curl_socklen_t. */ #ifdef CURL_TYPEOF_CURL_SOCKLEN_T typedef CURL_TYPEOF_CURL_SOCKLEN_T curl_socklen_t;