[libvirt] New compile failure on OSX: CLOCK_REALTIME undeclared
Justin Clift
jclift at redhat.com
Sun Nov 7 07:35:59 UTC 2010
Hi Eric,
When running 'make check' on OSX (git head) it's erroring out with:
eventtest.c: In function 'finishJob':
eventtest.c:216: warning: implicit declaration of function 'clock_gettime'
eventtest.c:216: warning: nested extern declaration of 'clock_gettime' [-Wnested-externs]
eventtest.c:216: error: 'CLOCK_REALTIME' undeclared (first use in this function)
eventtest.c:216: error: (Each undeclared identifier is reported only once
eventtest.c:216: error: for each function it appears in.)
make[3]: *** [eventtest.o] Error 1
make[2]: *** [check-am] Error 2
make[1]: *** [check-recursive] Error 1
make: *** [check-recursive] Error 1
$
Looks like the CLOCK_REALTIME is a glibc Linux thing. It's in /usr/include/time/bits.h on
a F13 box.
Any idea if gnulib can be used to get around this?
Regards and best wishes,
Justin Clift
More information about the libvir-list
mailing list