diff options
Diffstat (limited to 'util-linux/acpid.c')
-rw-r--r-- | util-linux/acpid.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/util-linux/acpid.c b/util-linux/acpid.c index 2f27cfd1c..6e7321b02 100644 --- a/util-linux/acpid.c +++ b/util-linux/acpid.c | |||
@@ -33,6 +33,25 @@ | |||
33 | #include <syslog.h> | 33 | #include <syslog.h> |
34 | #include <linux/input.h> | 34 | #include <linux/input.h> |
35 | 35 | ||
36 | #ifndef EV_SW | ||
37 | # define EV_SW 0x05 | ||
38 | #endif | ||
39 | #ifndef EV_KEY | ||
40 | # define EV_KEY 0x01 | ||
41 | #endif | ||
42 | #ifndef SW_LID | ||
43 | # define SW_LID 0x00 | ||
44 | #endif | ||
45 | #ifndef SW_RFKILL_ALL | ||
46 | # define SW_RFKILL_ALL 0x03 | ||
47 | #endif | ||
48 | #ifndef KEY_POWER | ||
49 | # define KEY_POWER 116 /* SC System Power Down */ | ||
50 | #endif | ||
51 | #ifndef KEY_SLEEP | ||
52 | # define KEY_SLEEP 142 /* SC System Sleep */ | ||
53 | #endif | ||
54 | |||
36 | enum { | 55 | enum { |
37 | OPT_c = (1 << 0), | 56 | OPT_c = (1 << 0), |
38 | OPT_d = (1 << 1), | 57 | OPT_d = (1 << 1), |