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] 9ee2748712

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Eric Le Bihan 2018-12-11 07:56:20 +01:00 committed by Anthony G. Basile
parent 2cb6b734de
commit 906654a0ab

View File

@ -183,3 +183,8 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
#ifndef KEY_ALS_TOGGLE #ifndef KEY_ALS_TOGGLE
#define KEY_ALS_TOGGLE 0x7a #define KEY_ALS_TOGGLE 0x7a
#endif #endif
#ifndef BTN_DPAD_UP
#define BTN_DPAD_UP 0x220
#define BTN_DPAD_RIGHT 0x223
#endif