[PATCH 3/4] Fix build without MSC_TIMESTAMP

Martin Minarik minarik11 at student.fiit.stuba.sk
Fri Aug 23 10:47:55 PDT 2013


To build with older input.h
---
 test/test-event-names.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/test-event-names.c b/test/test-event-names.c
index 74d0335..9b07e32 100644
--- a/test/test-event-names.c
+++ b/test/test-event-names.c
@@ -157,7 +157,9 @@ START_TEST(test_code_msc_name)
 	/* pick out a few only */
 	ck_assert_str_eq(libevdev_get_event_code_name(EV_MSC, MSC_SERIAL), "MSC_SERIAL");
 	ck_assert_str_eq(libevdev_get_event_code_name(EV_MSC, MSC_RAW), "MSC_RAW");
+#ifdef MSC_TIMESTAMP
 	ck_assert_str_eq(libevdev_get_event_code_name(EV_MSC, MSC_TIMESTAMP), "MSC_TIMESTAMP");
+#endif
 	ck_assert_str_eq(libevdev_get_event_code_name(EV_MSC, MSC_MAX), "MSC_MAX");
 
 	ck_assert(libevdev_get_event_code_name(EV_MSC, MSC_MAX - 1) == NULL);
-- 
1.7.10.4



More information about the Input-tools mailing list