From 66db81a41cd64e638795f1da117e912e14d76f7c Mon Sep 17 00:00:00 2001 From: Sean McBride 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 -- 2.7.4