diff options
author | Pierre Ossman <ossman@cendio.se> | 2012-12-13 13:55:22 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2012-12-13 13:55:22 +0000 |
commit | 8b6aa200ce8096ccab2ca4365e22231805fdf4fc (patch) | |
tree | 5ca4a997dad5b8c80c28c428b7de3fe5ddde6516 /common/network | |
parent | 5975ea6c74d5b663a8ef0304786e4b330a1f6108 (diff) | |
download | tigervnc-8b6aa200ce8096ccab2ca4365e22231805fdf4fc.tar.gz tigervnc-8b6aa200ce8096ccab2ca4365e22231805fdf4fc.zip |
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
Diffstat (limited to 'common/network')
-rw-r--r-- | common/network/TcpSocket.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
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; |