diff options
author | GDR! <gdr@gdr.name> | 2015-09-17 10:30:10 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2015-09-17 10:30:10 +0200 |
commit | ba90921d46f3bfffbb87f4b271ba0276b113dc2f (patch) | |
tree | 697d87f921bc0fddd54ee3a27b3cb65c13e302cb /mach.h | |
parent | 83790e5faf3de5ddb447e29ebe3490bdc30b1624 (diff) | |
parent | 199787953243d91449ac5f4a5ac16edc2497e438 (diff) |
Merge pull request #15 from nCore/mac
Possibility to compile on Mac OS platform
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 | ||