python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / eudev / 0002-missing-defines-for-old-kernels.patch
blob6966b07fe4af4fba96c5f56f802690013e566324
1 From c0f63850ad29ec978d070a08b816dc2bfca337e3 Mon Sep 17 00:00:00 2001
2 From: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
3 Date: Fri, 30 Dec 2016 11:28:41 -0200
4 Subject: [PATCH] udev-builtin-input_id.c: add missing kernel header defines.
6 Add missing defines so eudev builds for older kernels such as 2.6
8 Signed-off-by: Gustavo Sverzut Barbieri <barbieri@profusion.mobi>
9 ---
10 src/shared/missing.h | 8 ++++++++
11 src/udev/udev-builtin-input_id.c | 1 +
12 2 files changed, 9 insertions(+)
14 diff --git a/src/shared/missing.h b/src/shared/missing.h
15 index 5ad599795..bebbb42be 100644
16 --- a/src/shared/missing.h
17 +++ b/src/shared/missing.h
18 @@ -171,3 +171,11 @@ static inline int name_to_handle_at(int fd, const char *name, struct file_handle
19 (char *)memcpy(__new, __old, __len); \
21 #endif
23 +#ifndef BTN_TRIGGER_HAPPY
24 +#define BTN_TRIGGER_HAPPY 0x2c0
25 +#endif
27 +#ifndef INPUT_PROP_MAX
28 +#define INPUT_PROP_MAX 0x1f
29 +#endif
30 diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c
31 index b14190e42..ca545be5d 100644
32 --- a/src/udev/udev-builtin-input_id.c
33 +++ b/src/udev/udev-builtin-input_id.c
34 @@ -32,6 +32,7 @@
36 #include "udev.h"
37 #include "util.h"
38 +#include "missing.h"
40 /* we must use this kernel-compatible implementation */
41 #define BITS_PER_LONG (sizeof(unsigned long) * 8)
42 --
43 2.11.0