eudev is a fork of systemd-udev which doesn't require all the rest of systemd. It's suitable for running along with OpenWrt's procd, eplacing the very outdated version of pre-systemd udev. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
15 lines
506 B
Diff
15 lines
506 B
Diff
Index: eudev-3.1.5/src/udev/udev-builtin-input_id.c
|
|
===================================================================
|
|
--- eudev-3.1.5.orig/src/udev/udev-builtin-input_id.c
|
|
+++ eudev-3.1.5/src/udev/udev-builtin-input_id.c
|
|
@@ -33,6 +33,10 @@
|
|
#include "udev.h"
|
|
#include "util.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)
|