Windows lacks the IN6_ARE_ADDR_EQUAL macro, so define it ourselves
when necessary.


git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5018 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx
index 23cc49b..e494a11 100644
--- a/common/network/TcpSocket.cxx
+++ b/common/network/TcpSocket.cxx
@@ -54,6 +54,11 @@
 #define INADDR_LOOPBACK ((unsigned long)0x7F000001)
 #endif
 
+#if defined(HAVE_GETADDRINFO) && !defined(IN6_ARE_ADDR_EQUAL)
+#define IN6_ARE_ADDR_EQUAL(a,b) \
+  (memcmp ((const void*)(a), (const void*)(b), sizeof (struct in6_addr)) == 0)
+#endif
+
 using namespace network;
 using namespace rdr;