svn commit: samba r25728 - in
branches/SAMBA_4_0/source/lib/replace/system: .
metze at samba.org
metze at samba.org
Thu Oct 25 09:16:11 GMT 2007
Author: metze
Date: 2007-10-25 09:16:11 +0000 (Thu, 25 Oct 2007)
New Revision: 25728
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=25728
Log:
[libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze
Modified:
branches/SAMBA_4_0/source/lib/replace/system/network.h
Changeset:
Modified: branches/SAMBA_4_0/source/lib/replace/system/network.h
===================================================================
--- branches/SAMBA_4_0/source/lib/replace/system/network.h 2007-10-25 08:48:53 UTC (rev 25727)
+++ branches/SAMBA_4_0/source/lib/replace/system/network.h 2007-10-25 09:16:11 UTC (rev 25728)
@@ -136,6 +136,17 @@
#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
More information about the samba-cvs
mailing list