summaryrefslogtreecommitdiffstats
path: root/package/udev/patches/0003-add_btn_trigger_happy_define.patch
blob: 77eaf13aa5230ce3dc52c19ea41bf172e4e571a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)