diff options
-rw-r--r-- | src/common/inet.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <netdb.h> +/* 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) |