Closed kaniini closed 1 year ago
Sorry for the inexcusably-late reply.
Pulling this change will break builds on non-Linux platforms.
Per adjtime(2)
:
CONFORMING TO
None of these interfaces is described in POSIX.1
adjtimex() and clock_adjtime() are Linux-specific and should not be used in programs intended to be portable.
The preferred API for the NTP daemon is ntp_adjtime().
My recommendation would be to leave the calls to ntp_adjtime()
in place and conditionally define it as a preprocessor macro if there's a way to detect compilation against MUSL.
This was handled in #81 and #83.
the musl libc only provides the adjtimex() name, not the ntp one. this allows the owamp code to be portable to both glibc and musl libc.