From 26b4c8f71f91d22e081b27814782686edde0c90a Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Fri, 1 Jan 2021 10:11:34 +0000 Subject: Revert r559792 to unbreak INDEX and bulk -a It seems a lot of reverse dependencies were missed With hat: portmgr --- .../files/patch-device_usb_usb__service__impl.h | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 devel/electron5/files/patch-device_usb_usb__service__impl.h (limited to 'devel/electron5/files/patch-device_usb_usb__service__impl.h') diff --git a/devel/electron5/files/patch-device_usb_usb__service__impl.h b/devel/electron5/files/patch-device_usb_usb__service__impl.h new file mode 100644 index 000000000000..ad11f82527ed --- /dev/null +++ b/devel/electron5/files/patch-device_usb_usb__service__impl.h @@ -0,0 +1,26 @@ +--- device/usb/usb_service_impl.h.orig 2019-04-08 08:18:20 UTC ++++ device/usb/usb_service_impl.h +@@ -73,11 +73,13 @@ class UsbServiceImpl : + scoped_refptr device); + void RemoveDevice(scoped_refptr device); + ++#if !defined(OS_FREEBSD) + // Handle hotplug events from libusb. + static int LIBUSB_CALL HotplugCallback(libusb_context* context, + libusb_device* device, + libusb_hotplug_event event, + void* user_data); ++#endif + // These functions release a reference to the provided platform device. + void OnPlatformDeviceAdded(ScopedLibusbDeviceRef platform_device); + void OnPlatformDeviceRemoved(ScopedLibusbDeviceRef platform_device); +@@ -97,7 +99,9 @@ class UsbServiceImpl : + // connected instead of only when a full enumeration is requested. + // TODO(reillyg): Support this on all platforms. crbug.com/411715 + bool hotplug_enabled_ = false; ++#if !defined(OS_FREEBSD) + libusb_hotplug_callback_handle hotplug_handle_; ++#endif + + // Enumeration callbacks are queued until an enumeration completes. + bool enumeration_ready_ = false; -- cgit v1.2.3