diff options
author | irungentoo <irungentoo@gmail.com> | 2013-09-20 16:27:24 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-09-20 16:27:24 -0700 |
commit | 01ec9d6e7bd9be9328d13aa30009b1f7559d1471 (patch) | |
tree | 0c5f38a29552f1b653707d27b488a5dc5c3fd01d /toxcore/network.h | |
parent | 20b6900fb181f71eca4577a5f1e1f5f3ecd6a28b (diff) | |
parent | b9306d6d069b9e9b53fcd392e3d1b4f357a8cbcc (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.h | 9 |
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 | ||
42 | typedef unsigned int sock_t; | 42 | typedef unsigned int sock_t; |
43 | typedef 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 | ||