diff options
-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; |