aboutsummaryrefslogtreecommitdiffstats
path: root/community/chromium/chromium-48.0.2564.116-libusb_interrupt_event_handler.patch
blob: 2826e34774d4caf5f46f0381e1974e201fa1fcdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff -up chromium-48.0.2564.116/device/usb/usb_context.cc.modern-libusbx chromium-48.0.2564.116/device/usb/usb_context.cc
--- device/usb/usb_context.cc.modern-libusbx	2016-02-24 10:21:10.534996028 -0500
+++ device/usb/usb_context.cc	2016-02-24 10:22:28.270499864 -0500
@@ -57,7 +57,11 @@ void UsbContext::UsbEventHandler::Run()
 
 void UsbContext::UsbEventHandler::Stop() {
   base::subtle::Release_Store(&running_, 0);
+#ifdef LIBUSB_API_VERSION >= 0x01000105
+  libusb_interrupt_event_handler(context_);
+#else
   libusb_interrupt_handle_event(context_);
+#endif
 }
 
 UsbContext::UsbContext(PlatformUsbContext context) : context_(context) {