This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
QNX needs <sys/select.h> to define fd_set.
[perl5.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 )