diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-26 22:21:39 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2008-05-26 22:21:39 +0930 |
commit | 2cffb15678a8c7ef3709fa9e343d5961ae3919eb (patch) | |
tree | 587ac70414d1924116e8b9113bc8de06a00433c7 | |
parent | 4a39872189c42c4fe99aecce2e7b710ce18afb61 (diff) |
Check for XINPUT ABI 3.
-rw-r--r-- | src/xf86Tek4957.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xf86Tek4957.c b/src/xf86Tek4957.c index 5877269..de9ee83 100644 --- a/src/xf86Tek4957.c +++ b/src/xf86Tek4957.c @@ -446,7 +446,10 @@ TekProc(DeviceIntPtr pDev, int what) return !Success; } - if (InitValuatorClassDeviceStruct(pDev,2,xf86GetMotionEvents, + if (InitValuatorClassDeviceStruct(pDev,2, +#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) < 3 + xf86GetMotionEvents, +#endif local->history_size,Absolute)== FALSE) { xf86Msg(X_ERROR,"Tek4957:Unable to allocate Valuator class device\n"); return !Success; |