mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
libsodium header should only be included when libsodium is used.
This commit is contained in:
parent
28c5665a08
commit
207e87187d
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user