From 9cba22c38ab58e7e54258ce012a5e296f81f3f7b Mon Sep 17 00:00:00 2001 From: Connor Cooper Date: Sat, 4 Jan 2014 16:56:08 -0500 Subject: Define AI_ADDRCONFIG in inet.h, needed by OpenBSD --- src/common/inet.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/common/inet.h b/src/common/inet.h index 36d5bb60..e95a375f 100644 --- a/src/common/inet.h +++ b/src/common/inet.h @@ -34,6 +34,10 @@ #endif #ifdef WANTDNS #include +/* OpenBSD's netdb.h does not define AI_ADDRCONFIG */ +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif #endif #define closesocket close #define set_blocking(sok) fcntl(sok, F_SETFL, 0) -- cgit 1.4.1