twekkel / htpdate

HTTP Time protocol
https://www.vervest.org/htp
Other
50 stars 13 forks source link

htpdate: compile on non glibc toolchains #5

Closed angeloc closed 2 years ago

angeloc commented 2 years ago

On most libc libraries, ntp_adjtime function or is an alias to adjtimex, or it's missing entirely (musl, uclibc). BSD libc instead does have this function and relies entirely on ntp_adjtime.

Signed-off-by: Angelo Compagnucci angelo.compagnucci@gmail.com

twekkel commented 2 years ago

Not sure if there are many non-glibc users out there. At least Alpine Linux is pretty mainstream and needs this fix.

thx

angeloc commented 2 years ago

On Buildroot, we offer the opportunity to select from the three main toolchains and therefore we do a lot of fixes to let the software run on them. We try to exclude a software only when there is a real reason to.