$OpenBSD: patch-device_usb_usb_service_impl_cc,v 1.3 2015/05/26 17:37:40 robert Exp $
--- device/usb/usb_service_impl.cc.orig.port	Thu May 14 00:35:46 2015
+++ device/usb/usb_service_impl.cc	Wed May 20 08:34:56 2015
@@ -183,6 +183,7 @@ UsbServiceImpl::UsbServiceImpl(
       next_unique_id_(0),
       hotplug_enabled_(false),
       weak_factory_(this) {
+#if !defined(OS_BSD)
   task_runner_ = base::ThreadTaskRunnerHandle::Get();
   int rv = libusb_hotplug_register_callback(
       context_->context(),
@@ -201,9 +202,11 @@ UsbServiceImpl::UsbServiceImpl(
                                          base::Unretained(ui_thread_helper_)));
 #endif  // OS_WIN
   }
+#endif
 }
 
 UsbServiceImpl::~UsbServiceImpl() {
+#if !defined(OS_BSD)
   if (hotplug_enabled_) {
     libusb_hotplug_deregister_callback(context_->context(), hotplug_handle_);
   }
@@ -215,6 +218,7 @@ UsbServiceImpl::~UsbServiceImpl() {
   for (const auto& map_entry : devices_) {
     map_entry.second->OnDisconnect();
   }
+#endif
 }
 
 void UsbServiceImpl::RefreshDevices() {
@@ -336,6 +340,7 @@ scoped_refptr<UsbDeviceImpl> UsbServiceImpl::AddDevice
   }
 }
 
+#if !defined(OS_BSD)
 // static
 int LIBUSB_CALL UsbServiceImpl::HotplugCallback(libusb_context* context,
                                                 PlatformUsbDevice device,
@@ -373,6 +378,7 @@ int LIBUSB_CALL UsbServiceImpl::HotplugCallback(libusb
 
   return 0;
 }
+#endif
 
 void UsbServiceImpl::OnDeviceAdded(PlatformUsbDevice platform_device) {
   DCHECK(CalledOnValidThread());
