From 77ff2de999b7ea6b1b4a3a218fbd9d62bb07cd54 Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Thu, 24 Jul 2014 18:36:37 +0200 Subject: time-util: add clock_boottime_or_monotonic CLOCK_BOOTTIME is not supported by timerfd on older kernels, so for the time beeing, use this helper instead which will fallback to CLOCK_MONOTONIC if CLOCK_BOOTTIME is not supported. --- src/shared/time-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/shared/time-util.h') diff --git a/src/shared/time-util.h b/src/shared/time-util.h index 792cd27489..69a48c686b 100644 --- a/src/shared/time-util.h +++ b/src/shared/time-util.h @@ -98,3 +98,5 @@ bool ntp_synced(void); int get_timezones(char ***l); bool timezone_is_valid(const char *name); + +clockid_t clock_boottime_or_monotonic(void); -- cgit v1.2.3-54-g00ecf