From 2a79a943de417679c562cd4a917e1d1bc19b0d25 Mon Sep 17 00:00:00 2001 From: Martin Lucina Date: Thu, 18 Feb 2010 19:38:15 +0100 Subject: Add NetBSD support --- src/ip.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/ip.hpp') diff --git a/src/ip.hpp b/src/ip.hpp index 9d9f5c0..ffab2f2 100644 --- a/src/ip.hpp +++ b/src/ip.hpp @@ -30,6 +30,16 @@ #include #include #include + +// Some platforms (notably Darwin/OSX and NetBSD) do not define all AI_ +// flags for getaddrinfo(). This can be worked around safely by defining +// these to 0. +#ifndef AI_ADDRCONFIG +#define AI_ADDRCONFIG 0 +#endif +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif #endif #if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS -- cgit v1.2.3