aboutsummaryrefslogtreecommitdiffstats
path: root/package/udev
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
commitcee460f6420c534e227d7623c8e3af51975eca5d (patch)
tree9dd7b525518043072db306f2d13088a69657fb61 /package/udev
parent27652c4fa12582ff82a921f9d8ae83d0204fdd79 (diff)
downloadupstream-cee460f6420c534e227d7623c8e3af51975eca5d.tar.gz
upstream-cee460f6420c534e227d7623c8e3af51975eca5d.tar.bz2
upstream-cee460f6420c534e227d7623c8e3af51975eca5d.zip
[package] udev: Provide define to enable compilation with kernel 2.6.32.33 headers
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@28453 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/udev')
-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 0000000000..77eaf13aa5
--- /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)