summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-03 10:17:05 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2009-10-03 10:17:05 +0000
commit7b96b2524c561b9e8c3f7adbd673c9aa31381cf6 (patch)
treef80bf4dc9b33ed5bae5bc0b71b3d4abea01ef71f
parent64185e35e3f06c7ef2825a9cfbf6d2067a798e92 (diff)
Update for newer Xinput ABI.
-rw-r--r--driver/xf86-input-gunze/src/xf86Gunze.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/driver/xf86-input-gunze/src/xf86Gunze.c b/driver/xf86-input-gunze/src/xf86Gunze.c
index 3ad436899..7ed8beaf8 100644
--- a/driver/xf86-input-gunze/src/xf86Gunze.c
+++ b/driver/xf86-input-gunze/src/xf86Gunze.c
@@ -609,7 +609,10 @@ xf86GunzeProc(DeviceIntPtr ptr, int what)
return !Success;
}
if (InitValuatorClassDeviceStruct(ptr, nbaxes,
- xf86GetMotionEvents, local->history_size, Absolute)
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3
+ xf86GetMotionEvents,
+#endif
+ local->history_size, Absolute)
== FALSE) {
ErrorF("unable to allocate Valuator class device\n");
return !Success;