From 40d80624f6179bba02af7a0b819b0ec5d5ab270f Mon Sep 17 00:00:00 2001 From: Bryan Christianson Date: Tue, 20 Apr 2021 09:32:52 +1200 Subject: [PATCH] sys_timex: remove workaround for broken ntp_adjtime on macOS Early beta releases of macOS Big Sur had a signed/unsigned error in Apple's implementation of ntp_adjtime. Apple have since fixed this error and the workaround is no longer required. --- sys_timex.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/sys_timex.c b/sys_timex.c index 9a8504e..0ee6c8e 100644 --- a/sys_timex.c +++ b/sys_timex.c @@ -75,13 +75,6 @@ convert_timex_frequency(const struct timex *txc) freq_ppm = txc->freq / FREQ_SCALE; -#ifdef MACOSX - /* Temporary workaround for Apple bug treating freq as unsigned number */ - if (freq_ppm > 32767) { - freq_ppm -= 65536; - } -#endif - return -freq_ppm; }