summaryrefslogtreecommitdiff
path: root/source4/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-10-25 09:16:11 +0200
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:43:31 +0100
commit74a2b05793851de3bcc12980221e238da5310d8b (patch)
tree09f61706f2ac995c207795f2d72fc25abf11ed92 /source4/lib/replace/system
parent974890ebdf92b9701de6ac9e4190197c4f57b82f (diff)
downloadsamba-74a2b05793851de3bcc12980221e238da5310d8b.tar.gz
samba-74a2b05793851de3bcc12980221e238da5310d8b.tar.bz2
samba-74a2b05793851de3bcc12980221e238da5310d8b.zip
r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze (This used to be commit 5648c8a0de7482a28a5b95410c083ac87577d482)
Diffstat (limited to 'source4/lib/replace/system')
-rw-r--r--source4/lib/replace/system/network.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h
index 5de363f134..c7b499a932 100644
--- a/source4/lib/replace/system/network.h
+++ b/source4/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