kUSBReEnumerateCaptureDeviceMask was introduced in the 10.10 SDK, so
compiling on 10.9 and earlier will fail with:
os/darwin_usb.c: In function 'darwin_reenumerate_device':
os/darwin_usb.c:1749:18: error: 'kUSBReEnumerateCaptureDeviceMask' undeclared (first use in this function); did you mean 'USBReEnumerateOptions'?
options |= kUSBReEnumerateCaptureDeviceMask;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
USBReEnumerateOptions
os/darwin_usb.c:1749:18: note: each undeclared identifier is reported only once for each function it appears in
Downstream report: https://trac.macports.org/ticket/63668
Closes #1023
/* if we need to release capture */
if (HAS_CAPTURE_DEVICE()) {
if (capture) {
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 101000
options |= kUSBReEnumerateCaptureDeviceMask;
+#endif
}
} else {
capture = false;
-#define LIBUSB_NANO 11670
+#define LIBUSB_NANO 11671