commit | a6570c5da35b036df93da9f19182b4a4d9e8e6cc | [log] [tgz] |
---|---|---|
author | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 13:38:59 2015 +0100 |
committer | Pierre Ossman <ossman@cendio.se> | Tue Mar 17 13:38:59 2015 +0100 |
tree | 2b9599110df101b2364ba6cd8be2353af547b3ae | |
parent | 2f744170d420101a3167ba9f505eebcc7452a11a [diff] [blame] |
AI_NUMERICSERV is not available on some systems
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 51989e4..5ce7bc3 100644 --- a/common/network/TcpSocket.cxx +++ b/common/network/TcpSocket.cxx
@@ -62,6 +62,11 @@ (memcmp ((const void*)(a), (const void*)(b), sizeof (struct in6_addr)) == 0) #endif +// Missing on older Windows and OS X +#ifndef AI_NUMERICSERV +#define AI_NUMERICSERV 0 +#endif + using namespace network; using namespace rdr;