NetBSD does not support AI_ADDRCONFIG
authorVolker Lendecke <vl@samba.org>
Fri, 1 Feb 2008 13:23:56 +0000 (14:23 +0100)
committerMichael Adam <obnox@samba.org>
Wed, 20 Feb 2008 09:21:58 +0000 (10:21 +0100)
(cherry picked from commit fb3f7f4046fa195baf5116598772d9016238637f)
(This used to be commit e8f3653414c12fb752c096d848dc962008d90439)

source4/lib/replace/system/network.h

index 53bef66d482a8e756076c502e6d481b96a486dc2..d09e3f71f8d5b3511484edbb3fbbcde546cb0133 100644 (file)
@@ -163,8 +163,15 @@ void rep_freeifaddrs(struct ifaddrs *);
 #endif
 
 #ifndef AI_ADDRCONFIG
+/*
+ * logic copied from AI_NUMERICHOST
+ */
+#if defined(HAVE_STRUCT_ADDRINFO) && defined(HAVE_GETADDRINFO)
+#define AI_ADDRCONFIG  0
+#else
 #define AI_ADDRCONFIG  0x0020
 #endif
+#endif
 
 #ifndef AI_NUMERICSERV
 /*