diff --git a/toxcore/network.c b/toxcore/network.c index 2ffe067f..4b71d70b 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -38,7 +38,6 @@ #include #endif -#include #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 +#endif + uint8_t at_startup_ran = 0; int networking_at_startup(void) {