45d3cc73dc
A lot of patch files are renamed in this update. Submitted by: Timothy Vaccarelli Obtained from: https://github.com/LeFroid/ MFH: 2016Q2 Security: http://vuxml.freebsd.org/freebsd/c039a761-2c29-11e6-8912-3065ec8fd3ec.html Security: http://vuxml.freebsd.org/freebsd/1a6bbb95-24b8-11e6-bd31-3065ec8fd3ec.html Security: http://vuxml.freebsd.org/freebsd/4dfafa16-24ba-11e6-bd31-3065ec8fd3ec.html Security: http://vuxml.freebsd.org/freebsd/7da1da96-24bb-11e6-bd31-3065ec8fd3ec.html Security: http://vuxml.freebsd.org/freebsd/6d8505f0-0614-11e6-b39c-00262d5ed8ee.html
26 lines
772 B
C++
26 lines
772 B
C++
--- device/usb/usb_context.cc.orig 2016-03-25 13:04:49 UTC
|
|
+++ device/usb/usb_context.cc
|
|
@@ -9,8 +9,13 @@
|
|
#include "base/macros.h"
|
|
#include "base/threading/simple_thread.h"
|
|
#include "device/usb/usb_error.h"
|
|
+#if defined(OS_FREEBSD)
|
|
+#include "libusb.h"
|
|
+#define LIBUSB_CALL
|
|
+#else
|
|
#include "third_party/libusb/src/libusb/interrupt.h"
|
|
#include "third_party/libusb/src/libusb/libusb.h"
|
|
+#endif
|
|
|
|
namespace device {
|
|
|
|
@@ -58,7 +63,9 @@ void UsbContext::UsbEventHandler::Run()
|
|
|
|
void UsbContext::UsbEventHandler::Stop() {
|
|
base::subtle::Release_Store(&running_, 0);
|
|
+#if !defined(OS_FREEBSD) // XXX(rene) not available in base version
|
|
libusb_interrupt_handle_event(context_);
|
|
+#endif
|
|
}
|
|
|
|
UsbContext::UsbContext(PlatformUsbContext context) : context_(context) {
|