Moved to networking.h

Plan 9 requires u.h in every file
This commit is contained in:
Sean 2014-01-25 18:48:49 -08:00
parent d89bd2a6a9
commit 803c6f41d7

View File

@ -24,6 +24,11 @@
#ifndef NETWORK_H
#define NETWORK_H
#ifdef PLAN9
#include <u.h> //Plan 9 requires this is imported first
#include <libc.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
@ -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 <sodium.h>