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
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
debcaa6
)
Use <sys/poll.h> if available before going select().
author
Jarkko Hietaniemi
<jhi@iki.fi>
Mon, 17 Aug 2015 00:15:11 +0000
(20:15 -0400)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Fri, 2 Oct 2015 22:35:01 +0000
(18:35 -0400)
Some BSD implementations might have <sys/poll.h> instead of <poll.h>.
Noticed while looking for unused symbols.
dist/IO/poll.h
patch
|
blob
|
blame
|
history
diff --git
a/dist/IO/poll.h
b/dist/IO/poll.h
index
634bcdd
..
08de250
100644
(file)
--- a/
dist/IO/poll.h
+++ b/
dist/IO/poll.h
@@
-12,6
+12,8
@@
#if (defined(HAS_POLL) && defined(I_POLL)) || defined(POLLWRBAND)
# include <poll.h>
+#elif (defined(HAS_POLL) && defined(I_SYS_POLL))
+# include <sys/poll.h>
#else
#ifdef HAS_SELECT