From a6570c5da35b036df93da9f19182b4a4d9e8e6cc Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 17 Mar 2015 13:38:59 +0100 Subject: [PATCH] AI_NUMERICSERV is not available on some systems --- common/network/TcpSocket.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 51989e49..5ce7bc31 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; -- 2.39.5