0003-add_btn_trigger_happy_define.patch 363 B

12345678910111213
  1. --- a/extras/input_id/input_id.c
  2. +++ b/extras/input_id/input_id.c
  3. @@ -30,6 +30,10 @@
  4. #include "libudev.h"
  5. #include "libudev-private.h"
  6. +#ifndef BTN_TRIGGER_HAPPY
  7. +#define BTN_TRIGGER_HAPPY 0x2c0
  8. +#endif
  9. +
  10. /* we must use this kernel-compatible implementation */
  11. #define BITS_PER_LONG (sizeof(unsigned long) * 8)
  12. #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)