From 4b6575a1f94ee4c8298dc11865b08b0f615ccf48 Mon Sep 17 00:00:00 2001 From: Niels Dossche <7771979+nielsdos@users.noreply.github.com> Date: Sat, 24 Aug 2024 12:20:27 +0200 Subject: [PATCH] Fix GH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found Closes GH-15567. --- NEWS | 2 ++ main/network.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/NEWS b/NEWS index 4653280876c..64d4e9d4ddc 100644 --- a/NEWS +++ b/NEWS @@ -7,6 +7,8 @@ PHP NEWS (zeriyoshi) . Fixed bug GH-15515 (Configure error grep illegal option q). (Peter Kokot) . Fixed bug GH-15514 (Configure error: genif.sh: syntax error). (Peter Kokot) + . Fixed bug GH-15565 (--disable-ipv6 during compilation produces error + EAI_SYSTEM not found). (nielsdos) - DOM: . Fixed bug GH-15551 (Segmentation fault (access null pointer) in diff --git a/main/network.c b/main/network.c index 1133bbb3e86..d6922064561 100644 --- a/main/network.c +++ b/main/network.c @@ -118,7 +118,9 @@ static const char *php_gai_strerror(int code) {EAI_NONAME, "Name or service not known"}, {EAI_SERVICE, "Servname not supported for ai_socktype"}, {EAI_SOCKTYPE, "ai_socktype not supported"}, +# ifdef EAI_SYSTEM {EAI_SYSTEM, "System error"}, +# endif {0, NULL} }; int i;