summaryrefslogtreecommitdiff
path: root/package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-07-12 14:16:38 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-07-12 14:16:38 +0200
commit387754249806a6f438575368ce1694786b3a4084 (patch)
tree93954b5e6d61bd00b21ffb80e2ddae651283955b /package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch
parent3169aae85ef4b26aec667376b0559b38582ccf52 (diff)
busbox: add 1.17.0 upstream fixes
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch')
-rw-r--r--package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch b/package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch
new file mode 100644
index 000000000..664b87e31
--- /dev/null
+++ b/package/busybox/busybox-1.17.0/busybox-1.17.0-acpid.patch
@@ -0,0 +1,30 @@
+diff -urpN busybox-1.17.0/util-linux/acpid.c busybox-1.17.0-acpid/util-linux/acpid.c
+--- busybox-1.17.0/util-linux/acpid.c 2010-06-24 04:40:43.000000000 +0200
++++ busybox-1.17.0-acpid/util-linux/acpid.c 2010-07-12 06:24:00.000000000 +0200
+@@ -9,9 +9,25 @@
+ #include "libbb.h"
+
+ #include <linux/input.h>
++#ifndef EV_SW
++# define EV_SW 0x05
++#endif
++#ifndef EV_KEY
++# define EV_KEY 0x01
++#endif
++#ifndef SW_LID
++# define SW_LID 0x00
++#endif
+ #ifndef SW_RFKILL_ALL
+-# define SW_RFKILL_ALL 3
++# define SW_RFKILL_ALL 0x03
+ #endif
++#ifndef KEY_POWER
++# define KEY_POWER 116 /* SC System Power Down */
++#endif
++#ifndef KEY_SLEEP
++# define KEY_SLEEP 142 /* SC System Sleep */
++#endif
++
+
+ /*
+ * acpid listens to ACPI events coming either in textual form