diff options
author | irungentoo <irungentoo@gmail.com> | 2013-10-24 19:13:19 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-10-24 19:13:19 -0400 |
commit | bb0ec76de305b73a08fd74f38504790bc65f52e0 (patch) | |
tree | eb812c2a6bddf3bc7a165d2f2682dfcfc71f3160 | |
parent | 55692665dce4554a5f989aae0743a66ad112951a (diff) |
Fixed build error with libsodium.
-rw-r--r-- | toxcore/network.h | 3 |
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 | ||