This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
QNX needs <sys/select.h> to define fd_set.
[perl5.git] / ext / IO / poll.c
index 5d806b6..0f8c843 100644 (file)
 #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 )