diff options
author | Connor Cooper <connor.a.cooper@gmail.com> | 2014-01-04 16:56:08 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-04 23:13:34 -0500 |
commit | 9cba22c38ab58e7e54258ce012a5e296f81f3f7b (patch) | |
tree | fa2db440cc4ce413a23e21192c29d966fdc48fe6 | |
parent | 1e1ef1c6cf904e8d259ee2502f53cb87c3e30bd5 (diff) |
Define AI_ADDRCONFIG in inet.h, needed by OpenBSD
-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) |