Skip to content

Commit 8c238c1

Browse files
committed
Merge branch 'PHP-7.1'
* PHP-7.1: Fixed bug 74913 redirecting incorrect include <sys/poll.h>
2 parents ea51bcd + 2e82ed9 commit 8c238c1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ PHP NEWS
1414
. Fixed #74866 (extension_dir = "./ext" now use current directory for base).
1515
(Francois Laupretre)
1616
. Fixed bug #74923 (Crash when crawling through network share). (Anatol)
17+
. Fixed bug #74913 (fixed incorrect poll.h include). (petk)
1718

1819
- Date:
1920
. Fixed bug #74852 (property_exists returns true on unknown DateInterval

sapi/phpdbg/phpdbg.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@
3939
# include <sys/select.h>
4040
# include <sys/time.h>
4141
# include <sys/types.h>
42-
# include <sys/poll.h>
42+
# if HAVE_POLL_H
43+
# include <poll.h>
44+
# elif HAVE_SYS_POLL_H
45+
# include <sys/poll.h>
46+
# endif
4347
# include <netinet/in.h>
4448
# include <unistd.h>
4549
# include <arpa/inet.h>

0 commit comments

Comments
 (0)