diff options
author | Volker Lendecke <vl@samba.org> | 2008-02-01 14:23:56 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-02-20 10:21:58 +0100 |
commit | db2447a7a2b1d39a6849b53f7864e9283daacb6a (patch) | |
tree | bc058760c993ccbcb368554de695730d11ff3cf4 | |
parent | 62e849d918e76ac27096999792c46e3230b0663a (diff) | |
download | samba-db2447a7a2b1d39a6849b53f7864e9283daacb6a.tar.gz samba-db2447a7a2b1d39a6849b53f7864e9283daacb6a.tar.bz2 samba-db2447a7a2b1d39a6849b53f7864e9283daacb6a.zip |
NetBSD does not support AI_ADDRCONFIG
(cherry picked from commit fb3f7f4046fa195baf5116598772d9016238637f)
(This used to be commit e8f3653414c12fb752c096d848dc962008d90439)
-rw-r--r-- | source4/lib/replace/system/network.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/replace/system/network.h b/source4/lib/replace/system/network.h index 53bef66d48..d09e3f71f8 100644 --- a/source4/lib/replace/system/network.h +++ b/source4/lib/replace/system/network.h @@ -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 /* |