summaryrefslogtreecommitdiff
path: root/core/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/network.h')
-rw-r--r--core/network.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/network.h b/core/network.h
index f84ceccb..c8fdce5c 100644
--- a/core/network.h
+++ b/core/network.h
@@ -33,11 +33,15 @@
33#include <time.h> 33#include <time.h>
34 34
35 35
36
36#ifdef WIN32 //Put win32 includes here 37#ifdef WIN32 //Put win32 includes here
37 38
38#include <winsock2.h> 39#include <winsock2.h>
39#include <windows.h> 40#include <windows.h>
40 41
42//we use libsodium (Portable version of NaCl) because stock NaCl doesn't compile on windows.
43#include <sodium.h>
44
41#else //Linux includes 45#else //Linux includes
42 46
43#include <fcntl.h> 47#include <fcntl.h>
@@ -45,6 +49,12 @@
45#include <netinet/in.h> 49#include <netinet/in.h>
46#include <errno.h> 50#include <errno.h>
47#include <sys/time.h> 51#include <sys/time.h>
52
53//TODO: Including stuff like this is bad. This needs fixing.
54//We keep support for the original NaCl for now on UNIX like Operating Systems.
55//Commented out for now
56//#include "../nacl/build/Linux/include/amd64/crypto_box.h"
57
48#endif 58#endif
49 59
50#define MAX_UDP_PACKET_SIZE 65507 60#define MAX_UDP_PACKET_SIZE 65507