summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2017-07-03 18:03:22 +1000
committerLennart Poettering <lennart@poettering.net>2017-07-03 10:03:22 +0200
commit0e4959973fb34c22022d6d7be41556bb97b55b6e (patch)
treeeae0c9a624c88beeb76fc1f900a2b55a1394179d /src/udev
parent0a5706d1437d6ff22d8dc8f300186679a0a6b1cd (diff)
downloadsystemd-0e4959973fb34c22022d6d7be41556bb97b55b6e.tar.gz
udev: define BTN_DPAD_RIGHT if not present (#6267)
Regression introduced in commit b876bc0 when building on systemds with a pre 3.11 headers (RHEL7 and derivatives). All the DPAD defines were introduced in the same kernel commit d09bbfd2a8408a9954, we don't need a separate ifdef check for right. Fixes #6240
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-builtin-input_id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c
index 01e56b26f3..1b619724ca 100644
--- a/src/udev/udev-builtin-input_id.c
+++ b/src/udev/udev-builtin-input_id.c
@@ -47,6 +47,7 @@
/* available as of kernel 3.11 */
#ifndef BTN_DPAD_UP
#define BTN_DPAD_UP 0x220
+#define BTN_DPAD_RIGHT 0x223
#endif /* BTN_DPAD_UP */
/* available as of kernel 3.13 */