Skip to content

Commit

Permalink
udev-builtin-input_id.c: add missing kernel header defines.
Browse files Browse the repository at this point in the history
Add missing defines so eudev builds for older kernels such as 2.6

Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
  • Loading branch information
barbieri committed Dec 30, 2016
1 parent 29f9e04 commit c0f6385
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/shared/missing.h
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,11 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
(char *)memcpy(__new, __old, __len); \
})
#endif

#ifndef BTN_TRIGGER_HAPPY
#define BTN_TRIGGER_HAPPY 0x2c0
#endif

#ifndef INPUT_PROP_MAX
#define INPUT_PROP_MAX 0x1f
#endif
1 change: 1 addition & 0 deletions src/udev/udev-builtin-input_id.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

#include "udev.h"
#include "util.h"
#include "missing.h"

/* we must use this kernel-compatible implementation */
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
Expand Down

0 comments on commit c0f6385

Please sign in to comment.