Skip to content

Commit e49d63f

Browse files
committed
Fix phpGH-15565: --disable-ipv6 during compilation produces error EAI_SYSTEM not found
1 parent 9af574c commit e49d63f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main/network.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ static const char *php_gai_strerror(int code)
118118
{EAI_NONAME, "Name or service not known"},
119119
{EAI_SERVICE, "Servname not supported for ai_socktype"},
120120
{EAI_SOCKTYPE, "ai_socktype not supported"},
121+
# ifdef EAI_SYSTEM
121122
{EAI_SYSTEM, "System error"},
123+
# endif
122124
{0, NULL}
123125
};
124126
int i;

0 commit comments

Comments
 (0)