Skip to content
Snippets Groups Projects
Commit 2c92acb6 authored by Hamish Guthrie's avatar Hamish Guthrie
Browse files

udev: Provide define to enable compilation with kernel 2.6.32.33 headers

SVN-Revision: 28453
parent 56c2b1f3
No related branches found
No related tags found
No related merge requests found
--- 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment