Skip to content

Commit

Permalink
missing.h: add BTN_DPAD_UP
Browse files Browse the repository at this point in the history
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] systemd/systemd#6267
[2] torvalds/linux@9ee2748

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
  • Loading branch information
elebihan authored and blueness committed Dec 11, 2018
1 parent 2cb6b73 commit 906654a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shared/missing.h
Expand Up @@ -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

0 comments on commit 906654a

Please sign in to comment.