packages/utils/eudev/patches/0003-add_btn_trigger_happy_define.patch
Daniel Golle 13d7efa13f eudev: add new package
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>
2016-02-10 19:00:38 +02:00

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)