summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-20 16:27:24 -0700
committerirungentoo <irungentoo@gmail.com>2013-09-20 16:27:24 -0700
commit01ec9d6e7bd9be9328d13aa30009b1f7559d1471 (patch)
tree0c5f38a29552f1b653707d27b488a5dc5c3fd01d /toxcore/network.h
parent20b6900fb181f71eca4577a5f1e1f5f3ecd6a28b (diff)
parentb9306d6d069b9e9b53fcd392e3d1b4f357a8cbcc (diff)
Merge pull request #593 from BtbN/win_fixes
Fix compilation on windows for ipv6 code
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