summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Drake <dsd@gentoo.org>2009-02-25 12:33:33 -0300
committerDaniel Drake <dsd@gentoo.org>2009-02-25 12:33:33 -0300
commit5fd0e8478240fece646a58a3c6114001a73be99f (patch)
tree33d5cbf2be40bd571b1f701ea4bac1d479944e38
parentb49f6bf5c910d0fd694ecf165d7927673707bff9 (diff)
downloadlibusb-5fd0e8478240fece646a58a3c6114001a73be99f.tar.gz
Fix compilation of Darwin backend
My fault. Reported by ihryamzik@gmail.com
-rw-r--r--libusb/os/darwin_usb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index 3a0f0be..6ba3fea 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -1387,11 +1387,11 @@ static int darwin_clock_gettime(int clk_id, struct timespec *tp) {
clock_serv_t clock_ref;
switch (clk_id) {
- case LIBUSB_CLOCK_REALTIME:
+ case USBI_CLOCK_REALTIME:
/* CLOCK_REALTIME represents time since the epoch */
host_get_clock_service(mach_host_self(), CALENDAR_CLOCK, &clock_ref);
break;
- case LIBUSB_CLOCK_MONOTONIC:
+ case USBI_CLOCK_MONOTONIC:
/* use system boot time as reference for the monotonic clock */
host_get_clock_service(mach_host_self(), SYSTEM_CLOCK, &clock_ref);
break;