summaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2015-02-21 15:10:33 +1100
committerDarren Tucker <dtucker@zip.com.au>2015-02-21 15:10:33 +1100
commite50e8c97a9cecae1f28febccaa6ca5ab3bc10f54 (patch)
treeef2e49e129797e656bb38807a9a03a40bef981d8 /defines.h
parent18a208d6a460d707a45916db63a571e805f5db46 (diff)
Add null declaration of AI_NUMERICINFO.
Some platforms (older FreeBSD and DragonFly versions) do have getaddrinfo() but do not have AI_NUMERICINFO. so define it to zero in those cases.
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/defines.h b/defines.h
index f489196e..1ec9467d 100644
--- a/defines.h
+++ b/defines.h
@@ -594,6 +594,10 @@ struct winsize {
# undef HAVE_GAI_STRERROR
#endif
+#if defined(HAVE_GETADDRINFO) && !defined(HAVE_DECL_AI_NUMERICSERV)
+# define AI_NUMERICSERV 0
+#endif
+
#if defined(BROKEN_UPDWTMPX) && defined(HAVE_UPDWTMPX)
# undef HAVE_UPDWTMPX
#endif