From 8b6aa200ce8096ccab2ca4365e22231805fdf4fc Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 13 Dec 2012 13:55:22 +0000 Subject: [PATCH] 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 --- common/network/TcpSocket.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/network/TcpSocket.cxx b/common/network/TcpSocket.cxx index 23cc49bc..e494a112 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; -- 2.39.5