1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00

Irix defines AF_INET6, but lacks IPv6 support, including

struct sockaddr_in6.
This commit is contained in:
Sascha Schumann
2002-02-12 11:00:15 +00:00
parent c1507e1e40
commit 1288783667

View File

@@ -394,7 +394,7 @@ int php_sockaddr_size(php_sockaddr_storage *addr)
switch (((struct sockaddr *)addr)->sa_family) {
case AF_INET:
return sizeof(struct sockaddr_in);
#ifdef AF_INET6
#ifdef HAVE_IPV6
case AF_INET6:
return sizeof(struct sockaddr_in6);
#endif