openbsd-ports/www/chromium/patches/patch-chrome_renderer_renderer_main_cc
2011-03-15 11:38:05 +00:00

22 lines
871 B
Plaintext

$OpenBSD: patch-chrome_renderer_renderer_main_cc,v 1.3 2011/03/15 11:38:05 robert Exp $
--- chrome/renderer/renderer_main.cc.orig Fri Mar 11 10:01:45 2011
+++ chrome/renderer/renderer_main.cc Mon Mar 14 10:55:37 2011
@@ -272,7 +272,7 @@ int RendererMain(const MainFunctionParams& parameters)
PepperPluginRegistry::GetInstance();
{
-#if !defined(OS_LINUX)
+#if !defined(OS_LINUX) && !defined(OS_OPENBSD)
// TODO(markus): Check if it is OK to unconditionally move this
// instruction down.
RenderProcessImpl render_process;
@@ -284,7 +284,7 @@ int RendererMain(const MainFunctionParams& parameters)
} else {
LOG(ERROR) << "Running without renderer sandbox";
}
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
RenderProcessImpl render_process;
render_process.set_main_thread(new RenderThread());
#endif