diff options
Diffstat (limited to 'ext/IO/poll.c')
-rw-r--r-- | ext/IO/poll.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/IO/poll.c b/ext/IO/poll.c index 5d806b60f3..0f8c8434f2 100644 --- a/ext/IO/poll.c +++ b/ext/IO/poll.c @@ -26,6 +26,12 @@ #include <sys/stat.h> #include <errno.h> +#ifdef HAS_SELECT +#ifdef I_SYS_SELECT +#include <sys/select.h> +#endif +#endif + #ifdef EMULATE_POLL_WITH_SELECT # define POLL_CAN_READ (POLLIN | POLLRDNORM ) |