- Use https in WWW and MASTER_SITES - Sort ONLY_FOR_ARCHS, USES, USE_GNOME and GN_ARGS - Put in correct place MAKE_ENV+= V=1 variable - Use LLD linker by default for supported archs - Fix DEBUG option - Fix gpu_info_collector.cc warning: control may reach end of non-void function [-Wreturn-type] - Get rid of multiple definition errors Changelog: https://chromium.googlesource.com/chromium/src/+log/58.0.3029.110..59.0.3071.104?pretty=fuller&n=10000 MFH: 2017Q2 Security: https://www.vuxml.org/freebsd/52f4b48b-4ac3-11e7-99aa-e8e0b747a45a.html Security: https://www.vuxml.org/freebsd/f53dd5cc-527f-11e7-a772-e8e0b747a45a.html
26 lines
773 B
C++
26 lines
773 B
C++
--- device/usb/usb_context.cc.orig 2017-06-05 19:03:07 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) {
|