Make tslib compile with xserver-1.7
[openwrt/svn-archive/archive.git] / Xorg / driver / xf86-input-tslib / patches / 025-XI3.patch
1 diff --git a/src/tslib.c b/src/tslib.c
2 index e7a2766..884167d 100644
3 --- a/src/tslib.c
4 +++ b/src/tslib.c
5 @@ -234,7 +234,9 @@ xf86TslibControlProc(DeviceIntPtr device, int what)
6
7 if (InitValuatorClassDeviceStruct(device,
8 2,
9 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
10 xf86GetMotionEvents,
11 +#endif
12 0, Absolute) == FALSE) {
13 ErrorF("unable to allocate Valuator class device\n");
14 return !Success;