$OpenBSD: patch-content_ppapi_plugin_ppapi_plugin_main_cc,v 1.17 2021/10/29 14:49:41 robert Exp $

Index: content/ppapi_plugin/ppapi_plugin_main.cc
--- content/ppapi_plugin/ppapi_plugin_main.cc.orig
+++ content/ppapi_plugin/ppapi_plugin_main.cc
@@ -54,6 +54,11 @@
 #include "gin/v8_initializer.h"
 #endif
 
+#if defined(OS_OPENBSD)
+#include "content/public/common/sandbox_init.h"
+#include "sandbox/policy/openbsd/sandbox_openbsd.h"
+#endif
+
 #if defined(OS_POSIX) && !defined(OS_ANDROID)
 #include <stdlib.h>
 #endif
@@ -135,7 +140,7 @@ int PpapiPluginMain(const MainFunctionParams& paramete
   gin::V8Initializer::LoadV8Snapshot();
 #endif
 
-#if defined(OS_LINUX) || defined(OS_CHROMEOS)
+#if defined(OS_LINUX) || defined(OS_CHROMEOS) || defined(OS_BSD)
   sandbox::policy::SandboxLinux::GetInstance()->InitializeSandbox(
       sandbox::policy::SandboxTypeFromCommandLine(command_line),
       sandbox::policy::SandboxLinux::PreSandboxHook(),
