aboutsummaryrefslogtreecommitdiffhomepage
path: root/portability.h
diff options
context:
space:
mode:
Diffstat (limited to 'portability.h')
-rw-r--r--portability.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/portability.h b/portability.h
index 71d72fc..25aee01 100644
--- a/portability.h
+++ b/portability.h
@@ -1,5 +1,7 @@
#ifdef __APPLE__
- #define CLOCK_MONOTONIC_RAW _CLOCK_MONOTONIC_RAW
+ #ifndef CLOCK_MONOTONIC_COARSE
+ #define CLOCK_MONOTONIC_COARSE _CLOCK_MONOTONIC_RAW
+ #endif
#include <libkern/OSByteOrder.h>
#define htobe16(x) OSSwapHostToBigInt16(x)