Fix macOS builds (libusb_hotplug_event parameters)

This commit is contained in:
Robin Gareus 2023-05-04 02:49:33 +02:00
parent 336f51e1f0
commit 34ec1e57ac

View File

@ -175,7 +175,7 @@ ControlProtocolManager::set_session (Session* s)
#ifdef HAVE_USB
if (LIBUSB_SUCCESS == libusb_init (&_usb_ctx) && libusb_has_capability (LIBUSB_CAP_HAS_HOTPLUG)) {
if (LIBUSB_SUCCESS == libusb_hotplug_register_callback (_usb_ctx,
LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED | LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT,
libusb_hotplug_event(LIBUSB_HOTPLUG_EVENT_DEVICE_ARRIVED | LIBUSB_HOTPLUG_EVENT_DEVICE_LEFT),
LIBUSB_HOTPLUG_ENUMERATE,
LIBUSB_HOTPLUG_MATCH_ANY,
LIBUSB_HOTPLUG_MATCH_ANY,