Fixed build error with libsodium.

This commit is contained in:
irungentoo 2013-10-24 19:13:19 -04:00
parent 55692665dc
commit bb0ec76de3

View File

@ -71,6 +71,9 @@ typedef int sock_t;
#include <crypto_secretbox.h> #include <crypto_secretbox.h>
#include <randombytes.h> #include <randombytes.h>
#define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES) #define crypto_box_MACBYTES (crypto_box_ZEROBYTES - crypto_box_BOXZEROBYTES)
#endif
#ifndef crypto_secretbox_MACBYTES
#define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES) #define crypto_secretbox_MACBYTES (crypto_secretbox_ZEROBYTES - crypto_secretbox_BOXZEROBYTES)
#endif #endif