diff options
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 |