diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xf86Dyna.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/xf86Dyna.c b/src/xf86Dyna.c index 0a899f0..a728f0f 100644 --- a/src/xf86Dyna.c +++ b/src/xf86Dyna.c @@ -98,7 +98,9 @@ static const char *reqSymbols[] = { "xf86CollectInputOptions", "xf86ErrorFVerb", "xf86FindOptionValue", +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 "xf86GetMotionEvents", +#endif "xf86GetVerbosity", "xf86MotionHistoryAllocate", "xf86NameCmp", @@ -296,7 +298,10 @@ DeviceControl (DeviceIntPtr dev, int mode) * Device reports motions on 2 axes in absolute coordinates. * Axes min and max values are reported in raw coordinates. */ - if (InitValuatorClassDeviceStruct (dev, 2, xf86GetMotionEvents, + if (InitValuatorClassDeviceStruct (dev, 2, +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 + xf86GetMotionEvents, +#endif pInfo->history_size, Absolute) == FALSE) { ErrorF ("Unable to allocate Dynapro ValuatorClassDeviceStruct\n"); |