aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2015-03-17 13:38:59 +0100
committerPierre Ossman <ossman@cendio.se>2015-03-17 13:38:59 +0100
commita6570c5da35b036df93da9f19182b4a4d9e8e6cc (patch)
tree2b9599110df101b2364ba6cd8be2353af547b3ae /common
parent2f744170d420101a3167ba9f505eebcc7452a11a (diff)
downloadtigervnc-a6570c5da35b036df93da9f19182b4a4d9e8e6cc.tar.gz
tigervnc-a6570c5da35b036df93da9f19182b4a4d9e8e6cc.zip
AI_NUMERICSERV is not available on some systems
Diffstat (limited to 'common')
-rw-r--r--common/network/TcpSocket.cxx5
1 files changed, 5 insertions, 0 deletions
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;