On 2012.11.03 01:32, Sean McBride wrote:
This broke compilation on OS X 10.5, which worked before. The fix is trivial.
This is what you mean, right?
I haven't tested, but if you greenlight it, I'll push to mainline.
Regards,
/Pete
>From 66db81a41cd64e638795f1da117e912e14d76f7c Mon Sep 17 00:00:00 2001
From: Sean McBride <s...@rogue-research.com>
Date: Thu, 8 Nov 2012 19:02:06 +0000
Subject: [PATCH] Darwin: kAppleVendorID is not in the 10.5 SDK
* Use kIOUSBVendorIDAppleComputer instead
---
libusb/os/darwin_usb.c | 2 +-
libusb/version_nano.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index d4e9ce6..d92a45e 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -633,7 +633,7 @@ static int darwin_cache_device_descriptor (struct
libusb_context *ctx, struct li
/* received an overrun error but we still received a device descriptor */
ret = kIOReturnSuccess;
- if (kAppleVendorID == idVendor) {
+ if (kIOUSBVendorIDAppleComputer == idVendor) {
/* NTH: don't bother retrying or unsuspending Apple devices */
break;
}
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index 47335fd..7ecb4f7 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 10585
+#define LIBUSB_NANO 10586
--
1.7.11.msysgit.0
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel