From fb3f7f4046fa195baf5116598772d9016238637f Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 1 Feb 2008 14:23:56 +0100 Subject: [PATCH] NetBSD does not support AI_ADDRCONFIG --- source/lib/replace/system/network.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/source/lib/replace/system/network.h b/source/lib/replace/system/network.h index fe6e46817f6..aff8a841dae 100644 --- a/source/lib/replace/system/network.h +++ b/source/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 /*