From: Hamish Guthrie Date: Fri, 14 Oct 2011 11:42:40 +0000 (+0000) Subject: [package] udev: Provide define to enable compilation with kernel 2.6.32.33 headers X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;hb=031084f5c3c69a860268603e6b9954ecb9812ec1 [package] udev: Provide define to enable compilation with kernel 2.6.32.33 headers SVN-Revision: 28453 --- 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)