41 lines
1.3 KiB
C++
41 lines
1.3 KiB
C++
$NetBSD$
|
|
|
|
--- content/app/content_main_runner_impl.cc.orig 2020-07-15 18:56:47.000000000 +0000
|
|
+++ content/app/content_main_runner_impl.cc
|
|
@@ -131,7 +131,7 @@
|
|
|
|
#endif // OS_POSIX || OS_FUCHSIA
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
#include "base/native_library.h"
|
|
#include "base/rand_util.h"
|
|
#include "content/public/common/zygote/sandbox_support_linux.h"
|
|
@@ -300,7 +300,7 @@ void InitializeZygoteSandboxForBrowserPr
|
|
}
|
|
#endif // BUILDFLAG(USE_ZYGOTE_HANDLE)
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
|
|
#if BUILDFLAG(ENABLE_PLUGINS)
|
|
// Loads the (native) libraries but does not initialize them (i.e., does not
|
|
@@ -472,7 +472,7 @@ int RunZygote(ContentMainDelegate* deleg
|
|
delegate->ZygoteStarting(&zygote_fork_delegates);
|
|
media::InitializeMediaLibrary();
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_BSD)
|
|
PreSandboxInit();
|
|
#endif
|
|
|
|
@@ -616,7 +616,7 @@ int ContentMainRunnerImpl::Initialize(co
|
|
base::GlobalDescriptors::kBaseDescriptor);
|
|
#endif // !OS_ANDROID
|
|
|
|
-#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
+#if defined(OS_LINUX)
|
|
g_fds->Set(service_manager::kCrashDumpSignal,
|
|
service_manager::kCrashDumpSignal +
|
|
base::GlobalDescriptors::kBaseDescriptor);
|