$OpenBSD: patch-net_BUILD_gn,v 1.5 2017/12/04 13:55:42 robert Exp $
Index: net/BUILD.gn
--- net/BUILD.gn.orig
+++ net/BUILD.gn
@@ -94,7 +94,7 @@ if (use_glib && use_gconf && !is_chromeos) {
   net_configs += [ "//build/config/linux/gconf" ]
 }
 
-if (is_linux) {
+if (is_linux && !is_openbsd) {
   net_configs += [ "//build/config/linux:libresolv" ]
 }
 
@@ -1962,6 +1962,16 @@ component("net") {
         "proxy/proxy_resolver_winhttp.cc",
         "proxy/proxy_resolver_winhttp.h",
       ]
+    }
+
+    if (is_openbsd) {
+      sources -= [
+        "base/address_tracker_linux.cc",
+        "base/address_tracker_linux.h",
+        "base/network_change_notifier_linux.cc",
+        "base/network_interfaces_linux.cc",
+      ]
+      sources += [ "base/network_interfaces_openbsd.cc" ]
     }
 
     if (is_ios) {
