ports/www/ungoogled-chromium/patches/patch-sandbox_policy_sandbox_cc

24 lines
781 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: sandbox/policy/sandbox.cc
--- sandbox/policy/sandbox.cc.orig
+++ sandbox/policy/sandbox.cc
@@ -18,6 +18,10 @@
#include "sandbox/policy/linux/sandbox_linux.h"
#endif // BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_BSD)
+#include "sandbox/policy/sandbox.h"
+#endif // BUILDFLAG(IS_BSD)
+
#if BUILDFLAG(IS_MAC)
#include "sandbox/mac/seatbelt.h"
#endif // BUILDFLAG(IS_MAC)
2024-05-20 13:42:05 +00:00
@@ -32,7 +36,7 @@
2023-08-16 22:26:55 +00:00
namespace sandbox {
namespace policy {
-#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)
bool Sandbox::Initialize(sandbox::mojom::Sandbox sandbox_type,
SandboxLinux::PreSandboxHook hook,
const SandboxLinux::Options& options) {