libsodium header should only be included when libsodium is used.

This commit is contained in:
irungentoo 2014-05-18 18:17:42 -04:00
parent 28c5665a08
commit 207e87187d
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -38,7 +38,6 @@
#include <mach/mach.h>
#endif
#include <sodium.h>
#include "network.h"
#include "util.h"
@ -546,6 +545,11 @@ int networking_wait_cleanup(Networking_Core *net, uint8_t *data)
return 1;
}
#ifndef VANILLA_NACL
/* Used for sodium_init() */
#include <sodium.h>
#endif
uint8_t at_startup_ran = 0;
int networking_at_startup(void)
{