New compile failure on OSX: CLOCK_REALTIME undeclared

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]