From: Jaroslav Kysela Date: Fri, 10 Mar 2017 10:38:05 +0000 (+0100) Subject: clock.h: newer OS.X has monotonic clock, fixes #4028 X-Git-Tag: v4.2.1~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c0df814a12aa006865c570463467dbab7da2d2e1;p=thirdparty%2Ftvheadend.git clock.h: newer OS.X has monotonic clock, fixes #4028 --- diff --git a/src/clock.h b/src/clock.h index 2dfceef00..2be967c33 100644 --- a/src/clock.h +++ b/src/clock.h @@ -25,7 +25,7 @@ #define CLOCK_MONOTONIC_COARSE CLOCK_MONOTONIC #endif -#ifdef PLATFORM_DARWIN +#if defined(PLATFORM_DARWIN) && !defined(CLOCK_MONOTONIC) #error "Platforms without monotonic clocks are not supported!" #define CLOCK_MONOTONIC 0 #define CLOCK_REALTIME 0