From 3a85891f2ef081fe9b548bdf3132a48ee4780d89 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 22 Jun 2024 10:24:39 +0200 Subject: [PATCH] Replace ntp_adjtime with adjtimex ntp_adjtime is not supported by musl. --- src/timedate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timedate.cpp b/src/timedate.cpp index aed13f5..59812ad 100644 --- a/src/timedate.cpp +++ b/src/timedate.cpp @@ -325,7 +325,7 @@ namespace dlackware::timedate bool ntp_synchronized() { timex buffer{ .modes = 0 }; - int ntp_result = ntp_adjtime(&buffer); + int ntp_result = adjtimex(&buffer); if (ntp_result == -1) {