summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system
diff options
context:
space:
mode:
authormetze <metze@0c0555d6-39d7-0310-84fc-f1cc0bd64818>2007-10-25 09:16:11 +0000
committerStefan Metzmacher <metze@samba.org>2007-10-25 15:55:47 +0200
commit7c6ed7aa1c95f61a4569f266e42938c6b225944e (patch)
tree7305be88a5f9ebf52008c39154fc9ad889e190b4 /source3/lib/replace/system
parentaae2ebab2d305bc35fef7d1ee435896801379f97 (diff)
downloadsamba-7c6ed7aa1c95f61a4569f266e42938c6b225944e.tar.gz
samba-7c6ed7aa1c95f61a4569f266e42938c6b225944e.tar.bz2
samba-7c6ed7aa1c95f61a4569f266e42938c6b225944e.zip
[libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze git-svn-id: svn+ssh://svn.samba.org/data/svn/samba/branches/SAMBA_4_0@25728 0c0555d6-39d7-0310-84fc-f1cc0bd64818 (This used to be commit 11a977aa0757801fb0fa805b123e7bc75c8be447)
Diffstat (limited to 'source3/lib/replace/system')
-rw-r--r--source3/lib/replace/system/network.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index 5de363f134..c7b499a932 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/lib/replace/system/network.h
@@ -136,6 +136,17 @@ const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size);
#define AI_ADDRCONFIG 0x0020
#endif
+#ifndef AI_NUMERICSERV
+/*
+ * logic copied from AI_NUMERICHOST
+ */
+#if defined(HAVE_STRUCT_ADDRINFO) && defined(HAVE_GETADDRINFO)
+#define AI_NUMERICSERV 0
+#else
+#define AI_NUMERICSERV 0x0400
+#endif
+#endif
+
#ifndef NI_NUMERICHOST
#define NI_NUMERICHOST 1
#endif