kumquat-buildroot/package/evemu/evemu-0001-SYN_MAX.patch
Peter Seiderer 80082dee8f evemu: bump to version 2.0.0
Delete python3 porting related patches (already upstream)
Update other patches to apply cleanly.

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2014-08-09 10:10:20 +02:00

26 lines
821 B
Diff

[PATCH] make-event-names.py: fix SYN_MAX definition for modern kernel headers
SYN_MAX has been exported to user space since 3.12 (52764fed5: Input: add
SYN_MAX and SYN_CNT constants), so only define it locally if not already
defined, otherwise the build breaks.
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
src/make-event-names.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/make-event-names.py b/src/make-event-names.py
index bc77f2c..2d0924d 100755
--- a/src/make-event-names.py
+++ b/src/make-event-names.py
@@ -92,7 +92,9 @@ def print_mapping_table(bits):
print("#ifndef EVENT_NAMES_H")
print("#define EVENT_NAMES_H")
print("")
+ print("#ifndef SYN_MAX")
print("#define SYN_MAX 3 /* linux/input.h doesn't define that */")
+ print("#endif")
print("")
for prefix in prefixes: