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

commit 29808414b49ce929ccf5a6729929c2a3ead32b04
Author: Peter Hutterer <peter@cs.unisa.edu.au>
Date:   Mon May 26 22:18:17 2008 +0930

    Check for XINPUT ABI 3.

diff --git a/src/xf86Palmax.c b/src/xf86Palmax.c
index e42f169..bb77f07 100644
--- a/src/xf86Palmax.c
+++ b/src/xf86Palmax.c
@@ -68,7 +68,9 @@ static const char *reqSymbols[] = {
 	"xf86CollectInputOptions",
 	"xf86ErrorFVerb",
 	"xf86FindOptionValue",
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
 	"xf86GetMotionEvents",
+#endif
 	"xf86GetVerbosity",
 	"xf86MotionHistoryAllocate",
 	"xf86NameCmp",
@@ -467,7 +469,10 @@ xf86PmxControl(DeviceIntPtr	dev,
 		 * screen to fit one meter.
 		 */
 	
-		if (InitValuatorClassDeviceStruct(dev, 2, xf86GetMotionEvents,
+		if (InitValuatorClassDeviceStruct(dev, 2,
+#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