diff options
author | Martin Lucina <mato@kotelna.sk> | 2010-02-18 19:38:15 +0100 |
---|---|---|
committer | Martin Lucina <mato@kotelna.sk> | 2010-02-18 19:38:15 +0100 |
commit | 2a79a943de417679c562cd4a917e1d1bc19b0d25 (patch) | |
tree | 43ce287a60b07a4c4c9ba879606594e2bf6b7b9a /src/ip.hpp | |
parent | 776b12633981fd95050e138daeeba00a65d9532b (diff) |
Add NetBSD support
Diffstat (limited to 'src/ip.hpp')
-rw-r--r-- | src/ip.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -30,6 +30,16 @@ #include <arpa/inet.h> #include <netinet/in.h> #include <netdb.h> + +// 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 |