udev: Provide define to enable compilation with kernel 2.6.32.33 headers

SVN-Revision: 28453
This commit is contained in:
Hamish Guthrie 2011-10-14 11:42:40 +00:00
parent 56c2b1f382
commit 2c92acb699
1 changed files with 13 additions and 0 deletions

View File

@ -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)