aboutsummaryrefslogtreecommitdiffhomepage
path: root/portability.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-03-07 00:13:04 +0100
committercbdev <cb@cbcdn.com>2019-03-07 00:13:04 +0100
commit90a99a3c095aa634e8768914e34d2cb84586615f (patch)
treeeb768729e770fa96e006d971671dbae279c48312 /portability.h
parentb72d0964dd33b9084a0fc02d7fb365850c5606c6 (diff)
downloadmidimonster-90a99a3c095aa634e8768914e34d2cb84586615f.tar.gz
midimonster-90a99a3c095aa634e8768914e34d2cb84586615f.tar.bz2
midimonster-90a99a3c095aa634e8768914e34d2cb84586615f.zip
Use _CLOCK_MONOTONIC_RAW for timestamps on OSX
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)