From f72980ab58a5a72dbb407fb67bcbb984ab8e6810 Mon Sep 17 00:00:00 2001 From: Stefan Date: Tue, 16 Aug 2022 10:38:42 +0200 Subject: [PATCH] Support also Mac OS X At the beginning Apple did not support CLOCK_MONOTONIC. --- src/fetch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fetch.c b/src/fetch.c index 3cfb582..b8f50b2 100644 --- a/src/fetch.c +++ b/src/fetch.c @@ -78,7 +78,7 @@ void *uptime() #define CLOCK CLOCK_BOOTTIME #elif defined(CLOCK_UPTIME) #define CLOCK CLOCK_UPTIME -#elif defined(__APPLE__) +#elif defined(CLOCK_MONOTONIC) #define CLOCK CLOCK_MONOTONIC #endif