compat.c defines clock_gettime when there's no clock_gettime in librt.
However, clock_gettime has been available since macOS 10.12; AC_CHECK_LIB([rt], [clock_gettime], ...) doesn't work simply because
there's no librt on macOS. This results in a redefinition on macOS 10.12:
Zhiming Wang
Wed, 2016-11-30 16:37
Permalink
You can find the man page
You can find the man page
clock_gettime.3
on macOS 10.12 at https://git.io/v13eF.jcf
Fri, 2016-12-09 22:12
Permalink
FIXED
Fixed by commit r2936.
Zhiming Wang
Fri, 2016-12-09 23:45
Permalink
Homebrew
For the record, this is patched in Homebrew in https://github.com/Homebrew/homebrew-core/pull/7734.