summaryrefslogtreecommitdiff
path: root/lib/util/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/time.c')
-rw-r--r--lib/util/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/time.c b/lib/util/time.c
index 8c01627e2a1..8a4d93d4ac1 100644
--- a/lib/util/time.c
+++ b/lib/util/time.c
@@ -60,7 +60,7 @@ _PUBLIC_ void clock_gettime_mono(struct timespec *tp)
}
#endif
/* then try the monotonic clock: */
-#if CUSTOM_CLOCK_MONOTONIC != CLOCK_REALTIME
+#ifndef CUSTOM_CLOCK_MONOTONIC_IS_REALTIME
if (clock_gettime(CUSTOM_CLOCK_MONOTONIC,tp) == 0) {
return;
}