diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2001-08-15 17:14:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2001-08-15 17:14:33 (GMT) |
commit | f95dd0a2986392d4f51bb1dd17db50ff40aa90d5 (patch) | |
tree | 9a8a9c569d68b7bbdfde292bd66a5b71fa62dc02 /Modules/addrinfo.h | |
parent | 834a85a235020379935418510c0043f08a08a2a5 (diff) | |
download | cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.zip cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.gz cpython-f95dd0a2986392d4f51bb1dd17db50ff40aa90d5.tar.bz2 |
Fix portability problems with glibc 2.0, as reported in #449157.
Diffstat (limited to 'Modules/addrinfo.h')
-rw-r--r-- | Modules/addrinfo.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Modules/addrinfo.h b/Modules/addrinfo.h index 6d0991d..686a4b8 100644 --- a/Modules/addrinfo.h +++ b/Modules/addrinfo.h @@ -67,6 +67,10 @@ #define AI_DEFAULT (AI_V4MAPPED_CFG | AI_ADDRCONFIG) #endif +#endif /* HAVE_GETADDRINFO */ + +#ifndef HAVE_GETNAMEINFO + /* * Constants for getnameinfo() */ @@ -86,6 +90,8 @@ #define NI_DGRAM 0x00000010 #endif +#endif /* HAVE_GETNAMEINFO */ + #ifndef HAVE_ADDRINFO struct addrinfo { int ai_flags; /* AI_PASSIVE, AI_CANONNAME */ @@ -137,4 +143,3 @@ extern void freehostent Py_PROTO((struct hostent *)); #ifdef __cplusplus } #endif -#endif |