webkitgtk3/build-fix.patch
2011-02-02 19:56:13 -05:00

26 lines
1 KiB
Diff

diff -up webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.c.build-fix webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.c
--- webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.c.build-fix 2011-02-02 19:54:07.056203345 -0500
+++ webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.c 2011-02-02 19:55:00.157539483 -0500
@@ -46,7 +46,9 @@
#include "xembed.h"
#include "gtk2xtbin.h"
#include <gtk/gtk.h>
+#ifdef GTK_API_VERSION_2
#include <gdk/gdkx.h>
+#endif
#include <glib.h>
#include <assert.h>
#include <sys/time.h>
diff -up webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.h.build-fix webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.h
--- webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.h.build-fix 2011-02-02 19:54:16.973079366 -0500
+++ webkit-1.3.10/Source/WebCore/plugins/gtk/gtk2xtbin.h 2011-02-02 19:54:35.888842885 -0500
@@ -41,6 +41,9 @@
#define __GTK_XTBIN_H__
#include <gtk/gtk.h>
+#ifndef GTK_API_VERSION_2
+#include <gtk/gtkx.h>
+#endif
#include <X11/Intrinsic.h>
#include <X11/Xutil.h>
#include <X11/Xlib.h>