From f01d739968ea84f7a1f886a84146263c7082d985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Witold=20Kr=C4=99cicki?= Date: Thu, 28 Nov 2019 12:00:27 +0100 Subject: [PATCH] Use clock_realtime_fast where available --- lib/isc/unix/time.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index da25e5bf8e..dd50338e88 100644 --- a/lib/isc/unix/time.c +++ b/lib/isc/unix/time.c @@ -36,8 +36,10 @@ #define NS_PER_MS 1000000 /*%< Nanoseconds per millisecond. */ #define US_PER_S 1000000 /*%< Microseconds per second. */ -#ifdef CLOCK_REALTIME_COARSE +#if defined(CLOCK_REALTIME_COARSE) #define CLOCKSOURCE CLOCK_REALTIME_COARSE +#elif defined(CLOCK_REALTIME_FAST) +#define CLOCKSOURCE CLOCK_REALTIME_FAST #else #define CLOCKSOURCE CLOCK_REALTIME #endif