$OpenBSD: patch-net_BUILD_gn,v 1.6 2017/03/14 12:18:54 robert Exp $
--- net/BUILD.gn.orig.port	Thu Mar  9 21:04:35 2017
+++ net/BUILD.gn	Sun Mar 12 11:11:17 2017
@@ -82,7 +82,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" ]
 }
 
@@ -260,6 +260,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) {
