summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 0e0f0af9..2ba2b005 100644
--- a/toxcore/network.h
+++ b/toxcore/network.h
@@ -24,6 +24,11 @@
24#ifndef NETWORK_H 24#ifndef NETWORK_H
25#define NETWORK_H 25#define NETWORK_H
26 26
27#ifdef PLAN9
28#include <u.h> //Plan 9 requires this is imported first
29#include <libc.h>
30#endif
31
27#include <stdlib.h> 32#include <stdlib.h>
28#include <stdio.h> 33#include <stdio.h>
29#include <stdint.h> 34#include <stdint.h>
@@ -75,6 +80,19 @@ typedef int sock_t;
75 80
76#endif 81#endif
77 82
83#if defined(__AIX__)
84# define _XOPEN_SOURCE 1
85#endif
86
87#if defined(__sun__)
88#define __EXTENSIONS__ 1 // SunOS!
89#if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) || defined(__SunOS5_9__) || defined(__SunOS5_10__)
90//Nothing needed
91#else
92#define __MAKECONTEXT_V2_SOURCE 1
93#endif
94#endif
95
78#ifndef VANILLA_NACL 96#ifndef VANILLA_NACL
79/* We use libsodium by default. */ 97/* We use libsodium by default. */
80#include <sodium.h> 98#include <sodium.h>