php: fix build on C libraries that don't provide AI_IDN
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 26 Feb 2018 18:17:11 +0000 (19:17 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 26 Feb 2018 19:55:52 +0000 (20:55 +0100)
commita7f379203e9db862c0bc63156b0df08460acfe93
tree4277e3b06c4fb3b1f666d574f8a81e003352fa56
parent4fa524144bd2019f98159f21802de08be7b5bea0
php: fix build on C libraries that don't provide AI_IDN

The PHP sockets module now provides access to AI_IDN functionality (by
simply declaring a bunch of constants available from PHP code). AI_IDN
(internationalized domain names) is not supported in uClibc or musl,
which breaks the build.

This commit adds a patch to PHP which makes the use of AI_IDN
conditional, in a way that is identical to what is already done for
AI_ALL. The patch has been submitted upstream.

Fixes:

  http://autobuild.buildroot.net/results/ef040cc45bb2789ead82a8c445db3376e36b5ac7/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/php/0008-ext-sockets-make-AI_IDN-usage-optional.patch [new file with mode: 0644]