lars e37c6a065d [packages] make xf86-input-tslib compile with XInput version >= 3.
git-svn-id: svn://svn.openwrt.org/openwrt/packages@16261 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-06-01 17:25:19 +00:00

15 lines
430 B
Diff

diff --git a/src/tslib.c b/src/tslib.c
index e7a2766..884167d 100644
--- a/src/tslib.c
+++ b/src/tslib.c
@@ -234,7 +234,9 @@ xf86TslibControlProc(DeviceIntPtr device, int what)
if (InitValuatorClassDeviceStruct(device,
2,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
xf86GetMotionEvents,
+#endif
0, Absolute) == FALSE) {
ErrorF("unable to allocate Valuator class device\n");
return !Success;