$OpenBSD: patch-services_device_usb_BUILD_gn,v 1.6 2021/10/29 14:49:42 robert Exp $

Index: services/device/usb/BUILD.gn
--- services/device/usb/BUILD.gn.orig
+++ services/device/usb/BUILD.gn
@@ -107,7 +107,7 @@ static_library("usb") {
     deps += [ ":jni_headers" ]
   }
 
-  if (is_win || is_mac) {
+  if (is_win || is_mac || is_openbsd) {
     sources += [
       "scoped_libusb_device_handle.cc",
       "scoped_libusb_device_handle.h",
@@ -142,7 +142,7 @@ static_library("usb") {
     deps += [ "//third_party/re2" ]
   }
 
-  if (is_android || is_chromeos || is_linux) {
+  if (is_android || is_chromeos || is_linux && !is_openbsd) {
     sources += [
       "usb_device_handle_usbfs.cc",
       "usb_device_handle_usbfs.h",
