summaryrefslogtreecommitdiff
path: root/toxcore/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore/network.h')
-rw-r--r--toxcore/network.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 8b9b8b2f..bb851dcb 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -68,10 +68,15 @@ typedef int sock_t;
68#include <sodium.h> 68#include <sodium.h>
69#else 69#else
70#include <crypto_box.h> 70#include <crypto_box.h>
71#include <crypto_secretbox.h>
71#include <randombytes.h> 72#include <randombytes.h>
72#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) 73#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
73#endif 74#endif
74 75
76#ifndef crypto_secretbox_MACBYTES
77#define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES)
78#endif
79
75#ifndef IPV6_ADD_MEMBERSHIP 80#ifndef IPV6_ADD_MEMBERSHIP
76#ifdef IPV6_JOIN_GROUP 81#ifdef IPV6_JOIN_GROUP
77#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP 82#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP