From: Witold Kręcicki Date: Thu, 28 Nov 2019 11:00:27 +0000 (+0100) Subject: Use clock_realtime_fast where available X-Git-Tag: v9.15.7~53^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f01d739968ea84f7a1f886a84146263c7082d985;p=thirdparty%2Fbind9.git Use clock_realtime_fast where available --- diff --git a/lib/isc/unix/time.c b/lib/isc/unix/time.c index da25e5bf8e0..dd50338e888 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