]> xenbits.xensource.com Git - libvirt.git/commit
tests: eventtest: fix build on macOS
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sat, 19 Nov 2016 17:42:27 +0000 (20:42 +0300)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Thu, 24 Nov 2016 15:11:05 +0000 (18:11 +0300)
commita42342912b9ac7da5e67cae9426817b89d3ea41b
tree48a0b410131a919e24ccf28a26967420ad836085
parent0d1c147f60156ab0cd57418439a7cbf2c7bff891
tests: eventtest: fix build on macOS

macOS doesn't support clock_gettime(2), at least versions prior 10.12
(I didn't actually check 10.12 though). So, use its own routines in
eventtest.

 * configure.ac: check for requires symbols and define
   HAVE_MACH_CLOCK_ROUTINES if found
 * tests/eventtest.c: add clock_get_time() based implementation
configure.ac
tests/eventtest.c