diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-08-02 18:37:12 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-08-02 18:37:12 (GMT) |
commit | 1fa9f7b3d1d5c90cb231946a6edaf7f748e07436 (patch) | |
tree | 5cd2100e4f4c0e61f3e344ace57f96b1aaccef84 /Modules | |
parent | 4c36aa4108a15c990494ab3c6ab83634a774681f (diff) | |
download | cpython-1fa9f7b3d1d5c90cb231946a6edaf7f748e07436.zip cpython-1fa9f7b3d1d5c90cb231946a6edaf7f748e07436.tar.gz cpython-1fa9f7b3d1d5c90cb231946a6edaf7f748e07436.tar.bz2 |
Issue #15538: Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
Patch by Philipp Hagemeister.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/getaddrinfo.c | 2 | ||||
-rw-r--r-- | Modules/getnameinfo.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/getaddrinfo.c b/Modules/getaddrinfo.c index 1d0bfbb..9d054d0 100644 --- a/Modules/getaddrinfo.c +++ b/Modules/getaddrinfo.c @@ -430,7 +430,7 @@ getaddrinfo(const char*hostname, const char*servname, break; #ifdef ENABLE_IPV6 case AF_INET6: - pfx = ((struct in6_addr *)pton)->s6_addr8[0]; + pfx = ((struct in6_addr *)pton)->s6_addr[0]; if (pfx == 0 || pfx == 0xfe || pfx == 0xff) pai->ai_flags &= ~AI_CANONNAME; break; diff --git a/Modules/getnameinfo.c b/Modules/getnameinfo.c index 7892ae9..f7985c9 100644 --- a/Modules/getnameinfo.c +++ b/Modules/getnameinfo.c @@ -161,7 +161,7 @@ getnameinfo(sa, salen, host, hostlen, serv, servlen, flags) break; #ifdef ENABLE_IPV6 case AF_INET6: - pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr8[0]; + pfx = ((struct sockaddr_in6 *)sa)->sin6_addr.s6_addr[0]; if (pfx == 0 || pfx == 0xfe || pfx == 0xff) flags |= NI_NUMERICHOST; break; |