]> granicus.if.org Git - php/commit
Fix compiler warnings when compiled against musl libc
authorMichael Heimpold <mhei@heimpold.de>
Mon, 17 Apr 2017 22:22:34 +0000 (00:22 +0200)
committerJakub Zelenka <bukka@php.net>
Sun, 30 Apr 2017 19:24:56 +0000 (20:24 +0100)
commitd9dfac90bf4bc71c7724fe3777542429a79a5f63
tree420aa1a702d9448aebe2b106a6c80269c05c9748
parenta0b9554f94a47b32e9771b1be999e255ca6bacc7
Fix compiler warnings when compiled against musl libc

musl libc is complaining when <sys/poll.h> is used instead of <poll.h>
so change this.

This issue was reported for OpenWrt/LEDE where musl libc is the standard
C library instead of e.g. glibc, see the following link for the original PR:
https://github.com/openwrt/packages/pull/4263

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
--

v3: refined checks/fallback paths as suggested by @bukka

v2: rebased to resolve merge conflict in main/php_network.h

v1: initial PR
configure.in
main/fastcgi.c
main/network.c
main/php_network.h