summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-11-14 08:31:03 -0800
committerH. Peter Anvin <hpa@zytor.com>2008-11-14 08:31:03 -0800
commitdd50e8b75cd8b57669a75ee1477e88d94acbbc44 (patch)
tree3866bd6101a12d8e129c5dec6290c8b404eeafd8
parent920b99dfeeefcfd5d7f2e81cb50b59d42ee9ed00 (diff)
downloadtftp-hpa-dd50e8b75cd8b57669a75ee1477e88d94acbbc44.tar.gz
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 <hpa@zytor.com>
-rw-r--r--config.h16
1 files 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