File tree Expand file tree Collapse file tree 4 files changed +14
-5
lines changed
Expand file tree Collapse file tree 4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ limits.h \
494494locale.h \
495495monetary.h \
496496netdb.h \
497+ poll.h \
497498pwd.h \
498499resolv.h \
499500signal.h \
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ static int is_impersonate = 0;
7676# include <netdb.h>
7777# include <signal.h>
7878
79- # if defined(HAVE_SYS_POLL_H ) && defined(HAVE_POLL )
79+ # if defined(HAVE_POLL_H ) && defined(HAVE_POLL )
80+ # include <poll.h>
81+ # elif defined(HAVE_SYS_POLL_H ) && defined(HAVE_POLL )
8082# include <sys/poll.h>
8183# endif
8284# if defined(HAVE_SYS_SELECT_H )
@@ -1430,7 +1432,7 @@ int fcgi_accept_request(fcgi_request *req)
14301432 break ;
14311433#else
14321434 if (req -> fd >= 0 ) {
1433- #if defined(HAVE_SYS_POLL_H ) && defined( HAVE_POLL )
1435+ #if defined(HAVE_POLL )
14341436 struct pollfd fds ;
14351437 int ret ;
14361438
Original file line number Diff line number Diff line change 5151#ifdef HAVE_SYS_SELECT_H
5252#include <sys/select.h>
5353#endif
54- #if HAVE_SYS_POLL_H
54+ #if HAVE_POLL_H
55+ #include <poll.h>
56+ #elif HAVE_SYS_POLL_H
5557#include <sys/poll.h>
5658#endif
5759
Original file line number Diff line number Diff line change @@ -122,8 +122,12 @@ typedef int php_socket_t;
122122/* uncomment this to debug poll(2) emulation on systems that have poll(2) */
123123/* #define PHP_USE_POLL_2_EMULATION 1 */
124124
125- #if defined(HAVE_SYS_POLL_H ) && defined(HAVE_POLL )
126- # include <poll.h>
125+ #if defined(HAVE_POLL )
126+ # if defined(HAVE_POLL_H )
127+ # include <poll.h>
128+ # elif defined(HAVE_SYS_POLL_H )
129+ # include <sys/poll.h>
130+ # endif
127131typedef struct pollfd php_pollfd ;
128132#else
129133typedef struct _php_pollfd {
You can’t perform that action at this time.
0 commit comments