projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
QNX needs <sys/select.h> to define fd_set.
[p5sagit/p5-mst-13.2.git]
/
ext
/
IO
/
poll.c
diff --git
a/ext/IO/poll.c
b/ext/IO/poll.c
index
5d806b6
..
0f8c843
100644
(file)
--- 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 )