$OpenBSD: patch-src_3rdparty_chromium_third_party_libusb_libusb_gyp,v 1.1.1.1 2016/12/25 14:13:19 zhuk Exp $
--- src/3rdparty/chromium/third_party/libusb/libusb.gyp.orig.port	Thu Aug  4 14:13:01 2016
+++ src/3rdparty/chromium/third_party/libusb/libusb.gyp	Thu Aug  4 14:14:26 2016
@@ -34,7 +34,7 @@
         ],
       },
       'conditions': [
-        ['OS=="linux" or OS=="mac"', {
+        ['OS=="linux" or OS=="mac" or os_bsd==1', {
           'sources': [
             'src/libusb/os/poll_posix.c',
             'src/libusb/os/poll_posix.h',
@@ -49,6 +49,15 @@
             'LIBUSB_DESCRIBE="1.0.16"',
             'POLL_NFDS_TYPE=nfds_t',
             'THREADS_POSIX=1',
+          ],
+        }],
+        ['OS=="opebsd"', {
+          'defines': [
+            'OS_OPENBSD=1',
+            '_GNU_SOURCE=1',
+          ],
+          'sources': [
+            'src/libusb/os/openbsd_usb.c',
           ],
         }],
         ['OS=="linux"', {
