Re: [chrony-dev] [PATCH] macOS - weak linkage of clock_gettime (fixed missing include)

2020-03-12 Thread Miroslav Lichvar
On Thu, Mar 12, 2020 at 01:23:33PM +1300, Bryan Christianson wrote: > Earlier versions of macOS do not provide clock_gettime(). This patch checks > for clock_gettime() at run-time and falls back to gettimeofday() if the > symbol is not present. > LCL_ReadRawTime(struct timespec *ts) > { > #if

[chrony-dev] [PATCH] macOS - weak linkage of clock_gettime (fixed missing include)

2020-03-11 Thread Bryan Christianson
Earlier versions of macOS do not provide clock_gettime(). This patch checks for clock_gettime() at run-time and falls back to gettimeofday() if the symbol is not present. --- local.c | 8 sys_macosx.c | 25 + sys_macosx.h | 1 + 3 files changed, 34 inserti