summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Beer <dlbeer@gmail.com>2012-03-06 11:08:50 +1300
committerPeter Hutterer <peter.hutterer@who-t.net>2012-03-06 11:22:20 +1000
commit63e8fb8f91367479e15abe599dc8be844660e6d0 (patch)
tree5c40177d041a9c1efba10c1f69006a86a17c342f
parent1d63e9518c8e632c4024c434eda32f1ea93952c9 (diff)
Fix missing #ifdef around declaration of propbits.
This declaration references INPUT_PROP_MAX, and was introduced in commit ca8b12d6517568a8a7f2d5244a786e82216f8b43. Signed-off-by: Daniel Beer <dlbeer@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--evtest.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/evtest.c b/evtest.c
index 507035d..944ae8f 100644
--- a/evtest.c
+++ b/evtest.c
@@ -735,7 +735,9 @@ static int print_device_info(int fd)
unsigned short id[4];
char name[256] = "Unknown";
unsigned long bit[EV_MAX][NBITS(KEY_MAX)];
+#ifdef INPUT_PROP_SEMI_MT
unsigned long propbits[INPUT_PROP_MAX];
+#endif
if (ioctl(fd, EVIOCGVERSION, &version)) {
perror("evtest: can't get version");