diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-06-22 10:24:39 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-06-22 10:24:39 +0200 |
| commit | 3a85891f2ef081fe9b548bdf3132a48ee4780d89 (patch) | |
| tree | 3cacfa17f81209f0ba006d07509cdfa83ab9ff94 /src/timedate.cpp | |
| parent | cbbefae2849b9f7df8d4e41f1e535d5419799a82 (diff) | |
| download | slack-timedate-3a85891f2ef081fe9b548bdf3132a48ee4780d89.tar.gz | |
Replace ntp_adjtime with adjtimex
ntp_adjtime is not supported by musl.
Diffstat (limited to 'src/timedate.cpp')
| -rw-r--r-- | src/timedate.cpp | 2 |
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) { |
