diff options
-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 |