summaryrefslogtreecommitdiff
path: root/source3/lib/replace/system/network.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-02-01 14:23:56 +0100
committerVolker Lendecke <vl@samba.org>2008-02-01 14:49:34 +0100
commit00075c49245d5f96139b7c09f37a2b39aa10559f (patch)
treebf6c1ca7d8b3f44113d2acea4a9bafda183f29cf /source3/lib/replace/system/network.h
parentd49754944c8159b13cb25c25023db99ac7aa2e16 (diff)
downloadsamba-00075c49245d5f96139b7c09f37a2b39aa10559f.tar.gz
samba-00075c49245d5f96139b7c09f37a2b39aa10559f.tar.bz2
samba-00075c49245d5f96139b7c09f37a2b39aa10559f.zip
NetBSD does not support AI_ADDRCONFIG
(This used to be commit fb3f7f4046fa195baf5116598772d9016238637f)
Diffstat (limited to 'source3/lib/replace/system/network.h')
-rw-r--r--source3/lib/replace/system/network.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/lib/replace/system/network.h b/source3/lib/replace/system/network.h
index fe6e46817f..aff8a841da 100644
--- a/source3/lib/replace/system/network.h
+++ b/source3/lib/replace/system/network.h
@@ -137,8 +137,15 @@ const char *rep_inet_ntop(int af, const void *src, char *dst, socklen_t size);
#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
/*