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)