Darwin: kAppleVendorID is not in the 10.5 SDK
authorSean McBride <sean@rogue-research.com>
Thu, 8 Nov 2012 19:02:06 +0000 (19:02 +0000)
committerPete Batard <pete@akeo.ie>
Thu, 8 Nov 2012 19:03:58 +0000 (19:03 +0000)
* Use kIOUSBVendorIDAppleComputer instead

libusb/os/darwin_usb.c
libusb/version_nano.h

index d4e9ce6..d92a45e 100644 (file)
@@ -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;
     }
index 47335fd..7ecb4f7 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10585
+#define LIBUSB_NANO 10586