diff options
author | Tormod Volden <debian.tormod@gmail.com> | 2022-03-23 09:34:00 +0100 |
---|---|---|
committer | Tormod Volden <debian.tormod@gmail.com> | 2022-03-24 00:30:35 +0100 |
commit | 780044d4e4248da81046063bac9cdd4721de8af5 (patch) | |
tree | 948dd24909f3370a8a22ad3f1ea089284d046ecd | |
parent | 8102b7576c52b10f5806f785884e5cf3a4fb4a40 (diff) | |
download | libusb-780044d4e4248da81046063bac9cdd4721de8af5.tar.gz |
darwin: Fix Makefile build on macOS 10.11 and older
TARGET_OS_OSX is not defined when building with the clang 8 provided by
Xcode 8.2.1 on 10.11.5 (unless the Xcode project is used).
If it is not defined we'll just assume we have a "OSX" target.
Closes #1097
Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
-rw-r--r-- | libusb/os/darwin_usb.c | 2 | ||||
-rw-r--r-- | 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 3b9fd84..5439d06 100644 --- a/libusb/os/darwin_usb.c +++ b/libusb/os/darwin_usb.c @@ -2446,7 +2446,7 @@ static int darwin_free_streams (struct libusb_device_handle *dev_handle, unsigne /* macOS APIs for getting entitlement values */ -#if TARGET_OS_OSX +#if !defined(TARGET_OS_OSX) || TARGET_OS_OSX == 1 #include <Security/Security.h> #else typedef struct __SecTask *SecTaskRef; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index f9d6b03..7fbdfb5 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 11714 +#define LIBUSB_NANO 11715 |