darwin: use clock_gettime() on 10.12+
authorNathan Hjelm <hjelmn@lanl.gov>
Thu, 16 Mar 2017 18:54:22 +0000 (12:54 -0600)
committerNathan Hjelm <hjelmn@cs.unm.edu>
Thu, 16 Mar 2017 21:08:35 +0000 (15:08 -0600)
commit2756874a933aaace2d8972a04fc69860ccc6cb55
tree794422e9e0a74b8941c3ef1218ad1cf170a603a7
parent18a1452ee83358a8cd3d3fca7fed112ea1afa30f
darwin: use clock_gettime() on 10.12+

Apple implemented the POSIX.2 clock_gettime () call in macOS
10.12. This commit updates the darwin backend to not use the mach
clock if clock_gettime() is available.

Signed-off-by: Nathan Hjelm <hjelmn@mac.com>
libusb/os/darwin_usb.c
libusb/version_nano.h