From ba4e0427e955a648e24f6506d0cb92857c84b85d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 28 Mar 2022 16:41:10 +0200 Subject: time-util: assume CLOCK_BOOTTIME always exists MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Let's raise our supported baseline a bit: CLOCK_BOOTTIME started to work with timerfd in kernel 3.15 (i.e. back in 2014), let's require support for it now. This will raise our baseline only modestly from 3.13 → 3.15. --- src/import/curl-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/import') diff --git a/src/import/curl-util.c b/src/import/curl-util.c index d6a16b4f57..5b39251aa9 100644 --- a/src/import/curl-util.c +++ b/src/import/curl-util.c @@ -148,7 +148,7 @@ static int curl_glue_timer_callback(CURLM *curl, long timeout_ms, void *userdata if (sd_event_source_set_enabled(g->timer, SD_EVENT_ONESHOT) < 0) return -1; } else { - if (sd_event_add_time_relative(g->event, &g->timer, clock_boottime_or_monotonic(), usec, 0, curl_glue_on_timer, g) < 0) + if (sd_event_add_time_relative(g->event, &g->timer, CLOCK_BOOTTIME, usec, 0, curl_glue_on_timer, g) < 0) return -1; (void) sd_event_source_set_description(g->timer, "curl-timer"); -- cgit v1.2.1