summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-06-22 10:24:39 +0200
committerEugen Wissner <belka@caraus.de>2024-06-22 10:24:39 +0200
commit3a85891f2ef081fe9b548bdf3132a48ee4780d89 (patch)
tree3cacfa17f81209f0ba006d07509cdfa83ab9ff94
parentcbbefae2849b9f7df8d4e41f1e535d5419799a82 (diff)
downloadslack-timedate-3a85891f2ef081fe9b548bdf3132a48ee4780d89.tar.gz
Replace ntp_adjtime with adjtimex
ntp_adjtime is not supported by musl.
-rw-r--r--src/timedate.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{