|
|
|
@ -121,12 +121,14 @@ typedef struct _php_pollfd { |
|
|
|
|
|
|
|
PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout); |
|
|
|
|
|
|
|
#ifndef POLLIN |
|
|
|
# define POLLIN 0x0001 /* There is data to read */ |
|
|
|
# define POLLPRI 0x0002 /* There is urgent data to read */ |
|
|
|
# define POLLOUT 0x0004 /* Writing now will not block */ |
|
|
|
# define POLLERR 0x0008 /* Error condition */ |
|
|
|
# define POLLHUP 0x0010 /* Hung up */ |
|
|
|
# define POLLNVAL 0x0020 /* Invalid request: fd not open */ |
|
|
|
#endif |
|
|
|
|
|
|
|
# ifndef PHP_USE_POLL_2_EMULATION |
|
|
|
# define PHP_USE_POLL_2_EMULATION 1 |
|
|
|
|