From 803c6f41d7c5dd177c7ebd3c75e53908da80dedf Mon Sep 17 00:00:00 2001 From: Sean Date: Sat, 25 Jan 2014 18:48:49 -0800 Subject: [PATCH] Moved to networking.h Plan 9 requires u.h in every file --- toxcore/network.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 @@ #ifndef NETWORK_H #define NETWORK_H +#ifdef PLAN9 +#include //Plan 9 requires this is imported first +#include +#endif + #include #include #include @@ -75,6 +80,18 @@ typedef int sock_t; #endif +#if defined(__AIX__) +# define _XOPEN_SOURCE 1 +#endif + +#if defined(__sun__) +#define __EXTENSIONS__ 1 // SunOS! +#if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) || defined(__SunOS5_9__) || defined(__SunOS5_10__) +//Nothing needed +#else +#define __MAKECONTEXT_V2_SOURCE 1 +#endif + #ifndef VANILLA_NACL /* We use libsodium by default. */ #include