From 34ec1e57aca1fc45372aab9e4f1ea33a0e65a301 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Thu, 4 May 2023 02:49:33 +0200 Subject: [PATCH] Fix macOS builds (libusb_hotplug_event parameters) --- libs/ardour/control_protocol_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/control_protocol_manager.cc b/libs/ardour/control_protocol_manager.cc index 4e9619b897..e377590389 100644 --- a/libs/ardour/control_protocol_manager.cc +++ b/libs/ardour/control_protocol_manager.cc @@ -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,