diff options
-rw-r--r-- | toxcore/tox.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/toxcore/tox.h b/toxcore/tox.h index f3118270..aff8b17e 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h | |||
@@ -24,6 +24,11 @@ | |||
24 | #ifndef TOX_H | 24 | #ifndef TOX_H |
25 | #define TOX_H | 25 | #define TOX_H |
26 | 26 | ||
27 | #ifndef PLAN9 | ||
28 | #include <u.h> | ||
29 | #include <libc.h> | ||
30 | #endif | ||
31 | |||
27 | #include <stdint.h> | 32 | #include <stdint.h> |
28 | 33 | ||
29 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) | 34 | #if defined(_WIN32) || defined(__WIN32__) || defined (WIN32) |
@@ -57,6 +62,18 @@ typedef short sa_family_t; | |||
57 | extern "C" { | 62 | extern "C" { |
58 | #endif | 63 | #endif |
59 | 64 | ||
65 | #if defined(__AIX__) | ||
66 | # define _XOPEN_SOURCE 1 | ||
67 | #endif | ||
68 | |||
69 | #if defined(__sun__) | ||
70 | #define __EXTENSIONS__ 1 /* SunOS */ | ||
71 | #if defined(__SunOS5_6__) || defined(__SunOS5_7__) || defined(__SunOS5_8__) || defined(__SunOS5_9__) || defined(__SunOS5_10__) | ||
72 | //Nothing needed | ||
73 | #else | ||
74 | #define __MAKECONTEXT_V2_SOURCE 1 | ||
75 | #endif | ||
76 | |||
60 | #define TOX_MAX_NAME_LENGTH 128 | 77 | #define TOX_MAX_NAME_LENGTH 128 |
61 | #define TOX_MAX_STATUSMESSAGE_LENGTH 128 | 78 | #define TOX_MAX_STATUSMESSAGE_LENGTH 128 |
62 | #define TOX_CLIENT_ID_SIZE 32 | 79 | #define TOX_CLIENT_ID_SIZE 32 |