Make gdk build against old X headers

The XI.h in RHEL5 is missing some defines that are used
in the new device code.
This commit is contained in:
Matthias Clasen 2010-06-06 19:39:12 -04:00
parent 2ace397eb5
commit 25864cf0ce

View File

@ -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,