summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 4432baed..f6256ab4 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -40,6 +40,15 @@
40#include <ws2tcpip.h> 40#include <ws2tcpip.h>
41 41
42typedef unsigned int sock_t; 42typedef unsigned int sock_t;
43typedef unsigned int sa_family_t;
44
45#ifndef IN6_ARE_ADDR_EQUAL
46#define IN6_ARE_ADDR_EQUAL(a,b) \
47 ((((__const uint32_t *) (a))[0] == ((__const uint32_t *) (b))[0]) \
48 && (((__const uint32_t *) (a))[1] == ((__const uint32_t *) (b))[1]) \
49 && (((__const uint32_t *) (a))[2] == ((__const uint32_t *) (b))[2]) \
50 && (((__const uint32_t *) (a))[3] == ((__const uint32_t *) (b))[3]))
51#endif
43 52
44#else // Linux includes 53#else // Linux includes
45 54