]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
clock.h: newer OS.X has monotonic clock, fixes #4028
authorJaroslav Kysela <perex@perex.cz>
Fri, 10 Mar 2017 10:38:05 +0000 (11:38 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 10 Mar 2017 10:38:05 +0000 (11:38 +0100)
src/clock.h

index 2dfceef009fde40bc2bc82b9509513fd241beb69..2be967c333b8772649ecf38aeec802e805c6a805 100644 (file)
@@ -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