[packages] make xf86-input-tslib compile with XInput version >= 3.
authorLars-Peter Clausen <lars@metafoo.de>
Mon, 1 Jun 2009 17:25:19 +0000 (17:25 +0000)
committerLars-Peter Clausen <lars@metafoo.de>
Mon, 1 Jun 2009 17:25:19 +0000 (17:25 +0000)
SVN-Revision: 16261

Xorg/driver/xf86-input-tslib/patches/025-XI3.patch [new file with mode: 0644]

diff --git a/Xorg/driver/xf86-input-tslib/patches/025-XI3.patch b/Xorg/driver/xf86-input-tslib/patches/025-XI3.patch
new file mode 100644 (file)
index 0000000..af8af79
--- /dev/null
@@ -0,0 +1,14 @@
+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;