diff --git a/NEWS b/NEWS index cfa0935c8d0..2436f1b85a8 100644 --- a/NEWS +++ b/NEWS @@ -14,6 +14,8 @@ PHP NEWS (ilutov) . Fixed bug GH-15501 (Windows HAVE_
_H macros defined to 1 or undefined). (Peter Kokot) + . Fixed bug GH-15565 (--disable-ipv6 during compilation produces error + EAI_SYSTEM not found). (nielsdos) - Date: . Fixed bug GH-13773 (DatePeriod not taking into account microseconds for end diff --git a/main/network.c b/main/network.c index bf34043362d..9ca2b53b6ea 100644 --- a/main/network.c +++ b/main/network.c @@ -113,7 +113,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;