summaryrefslogtreecommitdiff
path: root/mach.h
diff options
context:
space:
mode:
Diffstat (limited to 'mach.h')
-rw-r--r--mach.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/mach.h b/mach.h
new file mode 100644
index 0000000..5ac9a4e
--- /dev/null
+++ b/mach.h
@@ -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