$OpenBSD: patch-net_BUILD_gn,v 1.3 2017/04/28 22:22:36 robert Exp $
--- net/BUILD.gn.orig.port	Wed Apr 19 21:06:36 2017
+++ net/BUILD.gn	Thu Apr 27 19:56:02 2017
@@ -79,7 +79,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" ]
 }
 
@@ -1803,6 +1803,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) {
