diff options
author | cbdev <cb@cbcdn.com> | 2019-03-07 00:13:04 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2019-03-07 00:13:04 +0100 |
commit | 90a99a3c095aa634e8768914e34d2cb84586615f (patch) | |
tree | eb768729e770fa96e006d971671dbae279c48312 | |
parent | b72d0964dd33b9084a0fc02d7fb365850c5606c6 (diff) | |
download | midimonster-90a99a3c095aa634e8768914e34d2cb84586615f.tar.gz midimonster-90a99a3c095aa634e8768914e34d2cb84586615f.tar.bz2 midimonster-90a99a3c095aa634e8768914e34d2cb84586615f.zip |
Use _CLOCK_MONOTONIC_RAW for timestamps on OSX
-rw-r--r-- | portability.h | 4 |
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) |