X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/0eada2603538d5c54921b8424c565f9afa9d3a60..99ec82edb99e35ff775c4d5e7bb8864a3519fe20:/package/udev/patches/0003-add_btn_trigger_happy_define.patch 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 000000000..77eaf13aa --- /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)