diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-12 06:20:11 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-12 06:20:11 +0200 |
commit | 6af732b9ae841b05a70242004811d25476fa7b54 (patch) | |
tree | 16f6b8e6304812fa8d3f4b0fb5ff3f6102d8a835 | |
parent | 04a5d5ad15899161b0ea0e53e0551d12d0401ca3 (diff) | |
download | busybox-w32-6af732b9ae841b05a70242004811d25476fa7b54.tar.gz busybox-w32-6af732b9ae841b05a70242004811d25476fa7b54.tar.bz2 busybox-w32-6af732b9ae841b05a70242004811d25476fa7b54.zip |
acpid: old kernel headers compat
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/acpid.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c index 342930964..11a9f624a 100644 --- a/util-linux/acpid.c +++ b/util-linux/acpid.c | |||
@@ -9,9 +9,25 @@ | |||
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | 10 | ||
11 | #include <linux/input.h> | 11 | #include <linux/input.h> |
12 | #ifndef EV_SW | ||
13 | # define EV_SW 0x05 | ||
14 | #endif | ||
15 | #ifndef EV_KEY | ||
16 | # define EV_KEY 0x01 | ||
17 | #endif | ||
18 | #ifndef SW_LID | ||
19 | # define SW_LID 0x00 | ||
20 | #endif | ||
12 | #ifndef SW_RFKILL_ALL | 21 | #ifndef SW_RFKILL_ALL |
13 | # define SW_RFKILL_ALL 3 | 22 | # define SW_RFKILL_ALL 0x03 |
14 | #endif | 23 | #endif |
24 | #ifndef KEY_POWER | ||
25 | # define KEY_POWER 116 /* SC System Power Down */ | ||
26 | #endif | ||
27 | #ifndef KEY_SLEEP | ||
28 | # define KEY_SLEEP 142 /* SC System Sleep */ | ||
29 | #endif | ||
30 | |||
15 | 31 | ||
16 | /* | 32 | /* |
17 | * acpid listens to ACPI events coming either in textual form | 33 | * acpid listens to ACPI events coming either in textual form |