summaryrefslogtreecommitdiff
path: root/sapi
diff options
context:
space:
mode:
authorPeter Kokot <peterkokot@gmail.com>2017-07-12 21:23:41 +0200
committerJoe Watkins <krakjoe@php.net>2017-07-17 06:50:59 +0100
commit0db20a7cb1648420fbec2ea7895e4ac4bc68e634 (patch)
treeb46c9ed0dd666e8c3712eb4a1a6a3e7c78a96d6e /sapi
parentc1504b81d35da5630cab32d57f4d3faa0bf3aaa1 (diff)
downloadphp-git-0db20a7cb1648420fbec2ea7895e4ac4bc68e634.tar.gz
Fixed bug 74913 redirecting incorrect include <sys/poll.h>
Diffstat (limited to 'sapi')
-rw-r--r--sapi/phpdbg/phpdbg.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sapi/phpdbg/phpdbg.c b/sapi/phpdbg/phpdbg.c
index c4078856d6..5fbc0d8126 100644
--- a/sapi/phpdbg/phpdbg.c
+++ b/sapi/phpdbg/phpdbg.c
@@ -43,7 +43,11 @@
# include <sys/select.h>
# include <sys/time.h>
# include <sys/types.h>
-# include <sys/poll.h>
+# if HAVE_POLL_H
+# include <poll.h>
+# elif HAVE_SYS_POLL_H
+# include <sys/poll.h>
+# endif
# include <netinet/in.h>
# include <unistd.h>
# include <arpa/inet.h>