v9.16.5 fails to build on OS X 10.11: "error: use of undeclared identifier 'CLOCK_REALTIME'"
Steps to reproduce
$ brew install bind
# [..]
/openssl@1.1/1.1.1g/include -I/usr/local/Cellar/json-c/0.14/include -I/usr/local/Cellar/json-c/0.14/include/json-c -I/usr/include/libxml2 -g -O2 -Qunused-arguments -pthread -fPIC -W -Wall -Wmissing-prototypes -Wcast-qual -Wwrite-strings -Wformat -Wpointer-arith -Wno-missing-field-initializers -fno-strict-aliasing -c time.c
stdtime.c:41:20: error: use of undeclared identifier 'CLOCK_REALTIME'
if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
^
stdtime.c:32:21: note: expanded from macro 'CLOCKSOURCE'
#define CLOCKSOURCE CLOCK_REALTIME
^
1 error generated.
make[3]: *** [stdtime.o] Error 1
make[3]: *** Waiting for unfinished jobs....
time.c:116:20: error: use of undeclared identifier 'CLOCK_REALTIME'
if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
^
time.c:41:21: note: expanded from macro 'CLOCKSOURCE'
#define CLOCKSOURCE CLOCK_REALTIME
^
time.c:150:20: error: use of undeclared identifier 'CLOCK_REALTIME'
if (clock_gettime(CLOCKSOURCE, &ts) == -1) {
^
time.c:41:21: note: expanded from macro 'CLOCKSOURCE'
#define CLOCKSOURCE CLOCK_REALTIME
^
2 errors generated.
make[3]: *** [time.o] Error 1
make[2]: *** [subdirs] Error 1
make[1]: *** [subdirs] Error 1
make: *** [subdirs] Error 1
Edited by leon