AI_NUMERICHOST is not defined on AIX.

This commit is contained in:
David Dykstra
2003-01-09 21:30:24 +00:00
parent bc2b4963a0
commit 8d2aad49e3

View File

@@ -81,7 +81,9 @@ static int match_address(char *addr, char *tok)
memset(&hints, 0, sizeof(hints));
hints.ai_family = PF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
#ifdef AI_NUMERICHOST
hints.ai_flags = AI_NUMERICHOST;
#endif
gai = getaddrinfo(addr, NULL, &hints, &resa);
if (gai) return 0;