summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
authorirungentoo <irungentoo@tox.im>2014-01-25 20:02:44 -0800
committerirungentoo <irungentoo@tox.im>2014-01-25 20:02:44 -0800
commitb42842982557c77f4e8d8070a90a996133f94cf0 (patch)
treed25f5ec5a60ae77a94dcbf6e7773179bc1df9b3b /toxcore
parent7df9c0eb4bdecb8496ab43a1e3b3f74273899595 (diff)
parent460e52c42696a0de8cbe5b86f67f7cab0d8cf95a (diff)
Merge pull request #702 from stqism/patch-4
Improved support for Plan 9, older SunOS, and AIX.
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>