summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-10-24 19:13:19 -0400
committerirungentoo <irungentoo@gmail.com>2013-10-24 19:13:19 -0400
commitbb0ec76de305b73a08fd74f38504790bc65f52e0 (patch)
treeeb812c2a6bddf3bc7a165d2f2682dfcfc71f3160 /toxcore
parent55692665dce4554a5f989aae0743a66ad112951a (diff)
Fixed build error with libsodium.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 99fc4039..c1418c4c 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -71,6 +71,9 @@ typedef int sock_t;
71#include <crypto_secretbox.h> 71#include <crypto_secretbox.h>
72#include <randombytes.h> 72#include <randombytes.h>
73#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) 73#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
74#endif
75
76#ifndef crypto_secretbox_MACBYTES
74#define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES) 77#define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES)
75#endif 78#endif
76 79