Updated collectd to 4.4.4
[openwrt/svn-archive/archive.git] / XOrg / driver / patches / xf86-input-evdev / 002-mipointer-fix.patch
1 diff -urN xf86-input-evdev-1.1.2.orig/src/evdev_axes.c xf86-input-evdev-1.1.2/src/evdev_axes.c
2 --- xf86-input-evdev-1.1.2.orig/src/evdev_axes.c 2008-08-28 10:59:09.000000000 +0200
3 +++ xf86-input-evdev-1.1.2/src/evdev_axes.c 2008-08-28 10:55:52.000000000 +0200
4 @@ -532,8 +532,14 @@
5 return Success;
6
7 if (!InitValuatorClassDeviceStruct(device, axes,
8 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 1
9 + GetMotionHistroy(),
10 + GetMotionHistorSize(),
11 +#else
12 miPointerGetMotionEvents,
13 + miPointerGetMotionBufferSize(),
14 +#endif
15 + 0))
16 - miPointerGetMotionBufferSize(), 0))
17 return !Success;
18
19 for (i = 0; i < axes; i++) {
20 @@ -543,8 +549,9 @@
21
22 if (!InitPtrFeedbackClassDeviceStruct(device, EvdevPtrCtrlProc))
23 return !Success;
24 +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
25 -
26 xf86MotionHistoryAllocate (pInfo);
27 +#endif
28
29 return Success;
30 }