diff options
author | Eric Le Bihan <eric.le.bihan.dev@free.fr> | 2018-12-11 07:56:20 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2018-12-11 06:34:25 -0500 |
commit | 906654a0ab73dd488b101a2047c3c6a1205f7548 (patch) | |
tree | b4e5ffd63294158a713f66f9bbd78cbad95c6de5 /src | |
parent | missing.h: add KEY_ALS_TOGGLE (diff) | |
download | eudev-906654a0ab73dd488b101a2047c3c6a1205f7548.tar.gz eudev-906654a0ab73dd488b101a2047c3c6a1205f7548.tar.bz2 eudev-906654a0ab73dd488b101a2047c3c6a1205f7548.zip |
missing.h: add BTN_DPAD_UP
As explained in issue 6267 of systemd [1], Linux < 3.11 does not
provide definitions for BTN_DPAD_{UP,RIGHT}, which were introduced in
[2].
This patch fixes this issue.
[1] https://github.com/systemd/systemd/pull/6267
[2] https://github.com/torvalds/linux/commit/9ee27487127461b5cf71670b708ed5b2b8da568c
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/missing.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index b5b2e1194..3a83c91a6 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -183,3 +183,8 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle #ifndef KEY_ALS_TOGGLE #define KEY_ALS_TOGGLE 0x7a #endif + +#ifndef BTN_DPAD_UP +#define BTN_DPAD_UP 0x220 +#define BTN_DPAD_RIGHT 0x223 +#endif |