diff --git a/config.h b/config.h index 76c7514..0e35438 100644 --- a/config.h +++ b/config.h @@ -321,14 +321,6 @@ int getaddrinfo(const char *, const char *, const struct addrinfo *, void freeaddrinfo(struct addrinfo *); const char *gai_strerror(int); -#ifndef AI_CANONNAME -#define AI_CANONNAME 0x0002 /* Request for canonical name. */ -#endif - -#ifndef AI_ADDRCONFIG -#define AI_ADDRCONFIG 0x0020 /* Use configuration of this host to choose - returned address type.. */ -#endif #ifndef EAI_NONAME #define EAI_NONAME -2 /* NAME or SERVICE is unknown. */ @@ -344,6 +336,14 @@ const char *gai_strerror(int); #endif #endif +#ifndef AI_CANONNAME +#define AI_CANONNAME 0 +#endif + +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif + #ifndef INET6_ADDRSTRLEN #define INET6_ADDRSTRLEN 46 #endif