From 90a99a3c095aa634e8768914e34d2cb84586615f Mon Sep 17 00:00:00 2001 From: cbdev Date: Thu, 7 Mar 2019 00:13:04 +0100 Subject: Use _CLOCK_MONOTONIC_RAW for timestamps on OSX --- portability.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 #define htobe16(x) OSSwapHostToBigInt16(x) -- cgit v1.2.3