$OpenBSD: patch-sandbox_linux_BUILD_gn,v 1.2 2017/04/19 05:16:47 robert Exp $
--- sandbox/linux/BUILD.gn.orig.port	Sat Apr  8 19:22:37 2017
+++ sandbox/linux/BUILD.gn	Sat Apr  8 19:22:44 2017
@@ -12,12 +12,12 @@ if (is_android) {
 }
 
 declare_args() {
-  compile_suid_client = is_linux
+  compile_suid_client = is_linux && !is_openbsd
 
-  compile_credentials = is_linux
+  compile_credentials = is_linux && !is_openbsd
 
   # On Android, use plain GTest.
-  use_base_test_suite = is_linux
+  use_base_test_suite = is_linux && !is_openbsd
 }
 
 if (is_nacl_nonsfi) {
@@ -358,7 +358,7 @@ component("sandbox_services") {
     public_deps += [ ":sandbox_services_headers" ]
   }
 
-  if (is_nacl_nonsfi) {
+  if (is_nacl_nonsfi || is_openbsd) {
     cflags = [ "-fgnu-inline-asm" ]
 
     sources -= [
@@ -366,6 +366,8 @@ component("sandbox_services") {
       "services/init_process_reaper.h",
       "services/scoped_process.cc",
       "services/scoped_process.h",
+      "services/syscall_wrappers.cc",
+      "services/syscall_wrappers.h",
       "services/yama.cc",
       "services/yama.h",
       "syscall_broker/broker_channel.cc",
