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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user