summaryrefslogtreecommitdiff
path: root/toxcore
diff options
context:
space:
mode:
Diffstat (limited to 'toxcore')
-rw-r--r--toxcore/network.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/toxcore/network.c b/toxcore/network.c
index 3c262bab..1c1459db 100644
--- a/toxcore/network.c
+++ b/toxcore/network.c
@@ -29,6 +29,12 @@
29#define _DARWIN_C_SOURCE 29#define _DARWIN_C_SOURCE
30#endif 30#endif
31 31
32// For Solaris.
33#ifdef __sun
34#define __EXTENSIONS__ 1
35#endif
36
37// For Linux (and some BSDs).
32#ifndef _XOPEN_SOURCE 38#ifndef _XOPEN_SOURCE
33#define _XOPEN_SOURCE 700 39#define _XOPEN_SOURCE 700
34#endif 40#endif
@@ -85,6 +91,11 @@
85#include <sys/types.h> 91#include <sys/types.h>
86#include <unistd.h> 92#include <unistd.h>
87 93
94#ifdef __sun
95#include <stropts.h>
96#include <sys/filio.h>
97#endif
98
88#define TOX_EWOULDBLOCK EWOULDBLOCK 99#define TOX_EWOULDBLOCK EWOULDBLOCK
89 100
90#else 101#else