]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use clock_realtime_fast where available
authorWitold Kręcicki <wpk@culm.net>
Thu, 28 Nov 2019 11:00:27 +0000 (12:00 +0100)
committerOndřej Surý <ondrej@sury.org>
Thu, 28 Nov 2019 11:36:55 +0000 (12:36 +0100)
lib/isc/unix/time.c

index da25e5bf8e07639c8f70420a5c3f3c98a36a0548..dd50338e888cfa60afe8109f5be6a4acd412f956 100644 (file)
 #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