File tree 4 files changed +14
-5
lines changed
4 files changed +14
-5
lines changed Original file line number Diff line number Diff line change @@ -494,6 +494,7 @@ limits.h \
494
494
locale.h \
495
495
monetary.h \
496
496
netdb.h \
497
+ poll.h \
497
498
pwd.h \
498
499
resolv.h \
499
500
signal.h \
Original file line number Diff line number Diff line change @@ -76,7 +76,9 @@ static int is_impersonate = 0;
76
76
# include <netdb.h>
77
77
# include <signal.h>
78
78
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 )
80
82
# include <sys/poll.h>
81
83
# endif
82
84
# if defined(HAVE_SYS_SELECT_H )
@@ -1430,7 +1432,7 @@ int fcgi_accept_request(fcgi_request *req)
1430
1432
break ;
1431
1433
#else
1432
1434
if (req -> fd >= 0 ) {
1433
- #if defined(HAVE_SYS_POLL_H ) && defined( HAVE_POLL )
1435
+ #if defined(HAVE_POLL )
1434
1436
struct pollfd fds ;
1435
1437
int ret ;
1436
1438
Original file line number Diff line number Diff line change 51
51
#ifdef HAVE_SYS_SELECT_H
52
52
#include <sys/select.h>
53
53
#endif
54
- #if HAVE_SYS_POLL_H
54
+ #if HAVE_POLL_H
55
+ #include <poll.h>
56
+ #elif HAVE_SYS_POLL_H
55
57
#include <sys/poll.h>
56
58
#endif
57
59
Original file line number Diff line number Diff line change @@ -122,8 +122,12 @@ typedef int php_socket_t;
122
122
/* uncomment this to debug poll(2) emulation on systems that have poll(2) */
123
123
/* #define PHP_USE_POLL_2_EMULATION 1 */
124
124
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
127
131
typedef struct pollfd php_pollfd ;
128
132
#else
129
133
typedef struct _php_pollfd {
You can’t perform that action at this time.
0 commit comments