$OpenBSD: patch-chrome_plugin_plugin_thread_cc,v 1.2 2011/02/08 09:43:02 espie Exp $
--- chrome/plugin/plugin_thread.cc.orig	Fri Jan 21 10:20:26 2011
+++ chrome/plugin/plugin_thread.cc	Sun Jan 23 23:27:33 2011
@@ -6,7 +6,7 @@
 
 #include "build/build_config.h"
 
-#if defined(USE_X11)
+#if defined(TOOLKIT_USES_GTK)
 #include <gtk/gtk.h>
 #elif defined(OS_MACOSX)
 #include <CoreFoundation/CoreFoundation.h>
@@ -57,7 +57,7 @@ PluginThread::PluginThread()
           switches::kPluginPath);
 
   lazy_tls.Pointer()->Set(this);
-#if defined(OS_LINUX)
+#if defined(TOOLKIT_GTK)
   {
     // XEmbed plugins assume they are hosted in a Gtk application, so we need
     // to initialize Gtk in the plugin process.
