diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-03-14 19:52:57 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-03-14 19:52:57 +0300 |
commit | e13cbdb439b801685708231b18bca6181d8c4592 (patch) | |
tree | 25898235ef3b6977460e78d592f4569887b89fe1 /src/nxt_unix.h | |
parent | 5135fcea930985dab45085033c5aae54c6ad1a65 (diff) | |
download | unit-e13cbdb439b801685708231b18bca6181d8c4592.tar.gz unit-e13cbdb439b801685708231b18bca6181d8c4592.tar.bz2 |
Solaris compatibilty.
Diffstat (limited to 'src/nxt_unix.h')
-rw-r--r-- | src/nxt_unix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_unix.h b/src/nxt_unix.h index 6f2e280b..8bcc8825 100644 --- a/src/nxt_unix.h +++ b/src/nxt_unix.h @@ -69,7 +69,9 @@ #define _REENTRANT /* Thread safe errno. */ #endif +#ifndef _POSIX_PTHREAD_SEMANTICS #define _POSIX_PTHREAD_SEMANTICS /* 2 arguments in sigwait(). */ +#endif /* * Solaris provides two sockets API: @@ -84,7 +86,9 @@ #define _XOPEN_SOURCE #define _XOPEN_SOURCE_EXTENDED 1 /* Enable Solaris extensions disabled by _XOPEN_SOURCE. */ +#ifndef __EXTENSIONS__ #define __EXTENSIONS__ +#endif #endif /* NXT_SOLARIS */ @@ -92,7 +96,9 @@ #if (NXT_MACOSX) #define _XOPEN_SOURCE /* ucontext(3). */ +#ifndef _DARWIN_C_SOURCE #define _DARWIN_C_SOURCE /* pthread_threadid_np(), mach_port_t. */ +#endif #include <mach/mach_time.h> /* mach_absolute_time(). */ #include <malloc/malloc.h> /* malloc_size(). */ |