File xf86-input-ur98.diff of Package xorg-x11-driver-input

commit 23736802e6831bd42f2597e0dd3af3acf97242f8
Author: Peter Hutterer <peter@cs.unisa.edu.au>
Date:   Mon May 26 22:23:03 2008 +0930

    Check for XINPUT ABI 3.

diff --git a/src/xf86Ur-98.c b/src/xf86Ur-98.c
index dabf3ca..2b148b0 100644
--- a/src/xf86Ur-98.c
+++ b/src/xf86Ur-98.c
@@ -49,7 +49,9 @@ static const char *reqSymbols[] = {
 	"xf86CollectInputOptions",
 	"xf86ErrorFVerb",
 	"xf86FindOptionValue",
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
 	"xf86GetMotionEvents",
+#endif
 	"xf86GetVerbosity",
 	"xf86MotionHistoryAllocate",
 	"xf86NameCmp",
@@ -316,7 +318,10 @@ xf86UR98Control(DeviceIntPtr	dev,
 		 * screen to fit one meter.
 		 */
 	
-		if (InitValuatorClassDeviceStruct(dev, priv->axes, xf86GetMotionEvents,
+		if (InitValuatorClassDeviceStruct(dev, priv->axes,
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+				xf86GetMotionEvents,
+#endif
 				local->history_size, Absolute) == FALSE) {
 			ErrorF("Unable to allocate ValuatorClassDeviceStruct\n");
 			return !Success;
openSUSE Build Service is sponsored by