summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-05-18 18:17:42 -0400
committerirungentoo <irungentoo@gmail.com>2014-05-18 18:17:42 -0400
commit207e87187d61b02098ae548426f84c6cce515525 (patch)
treebb25180227f2d931d203186595797bc348298c9f /toxcore
parent28c5665a08a0e1862d5f4e880a9d094534a5a43c (diff)
libsodium header should only be included when libsodium is used.
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.c6
1 files changed, 5 insertions, 1 deletions
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 @@
38#include <mach/mach.h> 38#include <mach/mach.h>
39#endif 39#endif
40 40
41#include <sodium.h>
42#include "network.h" 41#include "network.h"
43#include "util.h" 42#include "util.h"
44 43
@@ -546,6 +545,11 @@ int networking_wait_cleanup(Networking_Core *net, uint8_t *data)
546 return 1; 545 return 1;
547} 546}
548 547
548#ifndef VANILLA_NACL
549/* Used for sodium_init() */
550#include <sodium.h>
551#endif
552
549uint8_t at_startup_ran = 0; 553uint8_t at_startup_ran = 0;
550int networking_at_startup(void) 554int networking_at_startup(void)
551{ 555{