summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/toxcore/network.h b/toxcore/network.h
index 0e0f0af9..ae2cb081 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,18 @@ 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
78#ifndef VANILLA_NACL 95#ifndef VANILLA_NACL
79/* We use libsodium by default. */ 96/* We use libsodium by default. */
80#include <sodium.h> 97#include <sodium.h>