git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
974890e
)
r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
author
Stefan Metzmacher
<metze@samba.org>
Thu, 25 Oct 2007 07:16:11 +0000
(09:16 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 21 Dec 2007 04:43:31 +0000
(
05:43
+0100)
metze
(This used to be commit
5648c8a0de7482a28a5b95410c083ac87577d482
)
source4/lib/replace/system/network.h
patch
|
blob
|
history
diff --git
a/source4/lib/replace/system/network.h
b/source4/lib/replace/system/network.h
index 5de363f134497f525227d4dc08cb8e24df92c85b..c7b499a932cba6303df19fd92f724349382a014c 100644
(file)
--- 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