From 25864cf0ceddfbaf7703ecff4964f1ef708f66c7 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 6 Jun 2010 19:39:12 -0400 Subject: [PATCH] Make gdk build against old X headers The XI.h in RHEL5 is missing some defines that are used in the new device code. --- gdk/x11/gdkdevicemanager-xi.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gdk/x11/gdkdevicemanager-xi.c b/gdk/x11/gdkdevicemanager-xi.c index c1c3390525..e11cb58a6b 100644 --- a/gdk/x11/gdkdevicemanager-xi.c +++ b/gdk/x11/gdkdevicemanager-xi.c @@ -202,6 +202,12 @@ translate_class_info (GdkDevice *device, } } +/* old versions of XI.h don't define these */ +#ifndef IsXExtensionKeyboard +#define IsXExtensionKeyboard 3 +#define IsXExtensionPointer 4 +#endif + static GdkDevice * create_device (GdkDeviceManager *device_manager, GdkDisplay *display,