diff options
author | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-12-30 11:28:41 -0200 |
---|---|---|
committer | Gustavo Sverzut Barbieri <barbieri@profusion.mobi> | 2016-12-30 12:55:13 -0200 |
commit | c0f63850ad29ec978d070a08b816dc2bfca337e3 (patch) | |
tree | e441c73a5cb3af3a701893ddc4fb79f2cdbeeab1 | |
parent | 29f9e04a96752fc15a210b2f8f7d92081c582d4a (diff) |
udev-builtin-input_id.c: add missing kernel header defines.
Add missing defines so eudev builds for older kernels such as 2.6
Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
-rw-r--r-- | src/shared/missing.h | 8 | ||||
-rw-r--r-- | src/udev/udev-builtin-input_id.c | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/shared/missing.h b/src/shared/missing.h index 5ad5997959..bebbb42be0 100644 --- a/src/shared/missing.h +++ b/src/shared/missing.h @@ -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 diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c index b14190e423..ca545be5de 100644 --- a/src/udev/udev-builtin-input_id.c +++ b/src/udev/udev-builtin-input_id.c @@ -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) |