Fix compilation of Darwin backend
authorDaniel Drake <dsd@gentoo.org>
Wed, 25 Feb 2009 15:33:33 +0000 (12:33 -0300)
committerDaniel Drake <dsd@gentoo.org>
Wed, 25 Feb 2009 15:33:33 +0000 (12:33 -0300)
My fault. Reported by ihryamzik@gmail.com

libusb/os/darwin_usb.c

index 3a0f0be..6ba3fea 100644 (file)
@@ -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;