summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-08-31 15:32:39 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-08-31 15:32:39 +1000
commit0e14da978ea906c7fdaf90f54f798a542e79ce8f (patch)
treea670f3ab9aefd7c54d53f4ad6ccdf63040835801
parenta45a36ee66cc83a5d93383a305b1e7d19f56918b (diff)
Fix build error on kernels w/o input properties
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 05b623a..668d8c7 100644
--- a/evtest.c
+++ b/evtest.c
@@ -795,10 +795,12 @@ static inline const char* codename(unsigned int type, unsigned int code)
return (type <= EV_MAX && code <= maxval[type] && names[type] && names[type][code]) ? names[type][code] : "?";
}
+#ifdef INPUT_PROP_SEMI_MT
static inline const char* propname(unsigned int prop)
{
return (prop <= INPUT_PROP_MAX && props[prop]) ? props[prop] : "?";
}
+#endif
/**
* Print static device information (no events). This information includes