diff options
Diffstat (limited to 'mach.h')
-rw-r--r-- | mach.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ | |||
1 | #ifndef _MACH_H | ||
2 | #define _MACH_H | ||
3 | |||
4 | #include <time.h> | ||
5 | #include <mach/mach_time.h> | ||
6 | |||
7 | // there is no CLOCK_REALTIME or CLOCK_MONOTONIC on MacOS platform | ||
8 | #define CLOCK_REALTIME 0 | ||
9 | #define CLOCK_MONOTONIC 0 | ||
10 | |||
11 | // MacOS doesn't support the flag MSG_NOSIGNAL | ||
12 | #define MSG_NOSIGNAL SO_NOSIGPIPE | ||
13 | |||
14 | #endif \ No newline at end of file | ||