From dd50e8b75cd8b57669a75ee1477e88d94acbbc44 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 14 Nov 2008 08:31:03 -0800 Subject: [PATCH] If AI_CANONNAME or AI_ADDRCONFIG don't exist, set them to zero If the AI_CANONNAME or AI_ADDRCONFIG flags are missing, just set them to zero. Signed-off-by: H. Peter Anvin --- config.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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