librsvg/librsvg-gdkkeysym-compat.patch

17 lines
351 B
Diff

diff --git a/test-display.c b/test-display.c
index ff12945..9bead01 100644
--- a/test-display.c
+++ b/test-display.c
@@ -29,7 +29,11 @@
#include <gtk/gtk.h>
#include <gdk/gdk.h>
+#if GTK_CHECK_VERSION(2,21,8)
+#include <gdk/gdkkeysyms-compat.h>
+#else
#include <gdk/gdkkeysyms.h>
+#endif
#define DEFAULT_WIDTH 640
#define DEFAULT_HEIGHT 480