31 lines
1.1 KiB
Plaintext
31 lines
1.1 KiB
Plaintext
$OpenBSD: patch-content_browser_browser_main_cc,v 1.1 2011/12/14 16:58:19 robert Exp $
|
|
--- content/browser/browser_main.cc.orig Wed Dec 14 10:57:06 2011
|
|
+++ content/browser/browser_main.cc Wed Dec 14 10:57:21 2011
|
|
@@ -39,7 +39,7 @@
|
|
#include "ui/base/l10n/l10n_util_win.h"
|
|
#endif
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
#include <glib-object.h>
|
|
#endif
|
|
|
|
@@ -109,7 +109,7 @@ void SetupSandbox(const CommandLine& parsed_command_li
|
|
}
|
|
#endif
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
static void GLibLogHandler(const gchar* log_domain,
|
|
GLogLevelFlags log_level,
|
|
const gchar* message,
|
|
@@ -288,7 +288,7 @@ void BrowserMainParts::InitializeToolkit() {
|
|
// of intersecting ifdefs we have. To keep it easy to follow, there
|
|
// are no #else branches on any #ifs.
|
|
|
|
-#if defined(OS_LINUX)
|
|
+#if defined(OS_LINUX) || defined(OS_OPENBSD)
|
|
// We want to call g_thread_init(), but in some codepaths (tests) it
|
|
// is possible it has already been called. In older versions of
|
|
// GTK, it is an error to call g_thread_init twice; unfortunately,
|