Replace ntp_adjtime with adjtimex
All checks were successful
Build / build (push) Successful in 19s

ntp_adjtime is not supported by musl.
This commit is contained in:
Eugen Wissner 2024-06-22 10:24:39 +02:00
parent cbbefae284
commit 3a85891f2e

View File

@ -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)
{