summaryrefslogtreecommitdiff
path: root/package/udev/patches
diff options
context:
space:
mode:
authorHamish Guthrie <hcg@openwrt.org>2011-10-14 11:42:40 +0000
committerHamish Guthrie <hcg@openwrt.org>2011-10-14 11:42:40 +0000
commit2c92acb699db44d9bef235cdd07c9a26c2f94e74 (patch)
tree13c51fed5fc751f6f77c2c9c76dc45ab7d3a9cc9 /package/udev/patches
parent56c2b1f382d5628253bd4071355c19ba2d3a3125 (diff)
downloadmtk-20170518-2c92acb699db44d9bef235cdd07c9a26c2f94e74.zip
mtk-20170518-2c92acb699db44d9bef235cdd07c9a26c2f94e74.tar.gz
mtk-20170518-2c92acb699db44d9bef235cdd07c9a26c2f94e74.tar.bz2
udev: Provide define to enable compilation with kernel 2.6.32.33 headers
SVN-Revision: 28453
Diffstat (limited to 'package/udev/patches')
-rw-r--r--package/udev/patches/0003-add_btn_trigger_happy_define.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/udev/patches/0003-add_btn_trigger_happy_define.patch b/package/udev/patches/0003-add_btn_trigger_happy_define.patch
new file mode 100644
index 0000000..77eaf13
--- /dev/null
+++ b/package/udev/patches/0003-add_btn_trigger_happy_define.patch
@@ -0,0 +1,13 @@
+--- a/extras/input_id/input_id.c
++++ b/extras/input_id/input_id.c
+@@ -30,6 +30,10 @@
+ #include "libudev.h"
+ #include "libudev-private.h"
+
++#ifndef BTN_TRIGGER_HAPPY
++#define BTN_TRIGGER_HAPPY 0x2c0
++#endif
++
+ /* we must use this kernel-compatible implementation */
+ #define BITS_PER_LONG (sizeof(unsigned long) * 8)
+ #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)