Browse Source

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
tags/v1.2.90
Pierre Ossman 11 years ago
parent
commit
8b6aa200ce
1 changed files with 5 additions and 0 deletions
  1. 5
    0
      common/network/TcpSocket.cxx

+ 5
- 0
common/network/TcpSocket.cxx View File

@@ -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;


Loading…
Cancel
Save