summaryrefslogtreecommitdiff
path: root/src/network/wait-online
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2022-03-28 16:41:10 +0200
committerLennart Poettering <lennart@poettering.net>2022-03-28 16:55:41 +0200
commitba4e0427e955a648e24f6506d0cb92857c84b85d (patch)
tree78d563c6d8b36fab7b7d53997d5a27f55cad10d6 /src/network/wait-online
parentec4954d934c67c315669eff5593a68fd402a63e8 (diff)
downloadsystemd-ba4e0427e955a648e24f6506d0cb92857c84b85d.tar.gz
time-util: assume CLOCK_BOOTTIME always exists
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.
Diffstat (limited to 'src/network/wait-online')
-rw-r--r--src/network/wait-online/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/wait-online/manager.c b/src/network/wait-online/manager.c
index 093622270d..e5e23979ea 100644
--- a/src/network/wait-online/manager.c
+++ b/src/network/wait-online/manager.c
@@ -380,7 +380,7 @@ int manager_new(Manager **ret,
(void) sd_event_add_signal(m->event, NULL, SIGINT, NULL, NULL);
if (timeout > 0) {
- r = sd_event_add_time_relative(m->event, NULL, clock_boottime_or_monotonic(), timeout, 0, NULL, INT_TO_PTR(-ETIMEDOUT));
+ r = sd_event_add_time_relative(m->event, NULL, CLOCK_BOOTTIME, timeout, 0, NULL, INT_TO_PTR(-ETIMEDOUT));
if (r < 0 && r != -EOVERFLOW)
return r;
}