summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-07-12 10:28:08 +1000
committerJason Gerecke <killertofu@gmail.com>2013-07-15 10:02:24 -0700
commitb25eb646c36d19a46c561b3c091adb5c86c563df (patch)
tree5011401d5cc45f5b58e87983ee8ec34596581cdc
parent4982cebdadb32376c3b1964616ede44a712c8a24 (diff)
Fix build on ABI < 16 - touch_mask isn't defined
Fixes: http://sourceforge.net/p/linuxwacom/bugs/232 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/wcmCommon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wcmCommon.c b/src/wcmCommon.c
index f42c9f4..c81310f 100644
--- a/src/wcmCommon.c
+++ b/src/wcmCommon.c
@@ -1469,7 +1469,9 @@ void wcmFreeCommon(WacomCommonPtr *ptr)
common->serials = next;
}
free(common->device_path);
+#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 16
free(common->touch_mask);
+#endif
free(common);
}
*ptr = NULL;