From 14bd16ac56e81e4912341cb731dc54af0dbe9e6c Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 8 Jul 2011 08:49:40 +0200 Subject: more tweak for bionic Signed-off-by: Denys Vlasenko --- util-linux/acpid.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'util-linux/acpid.c') 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 @@ #include #include +#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 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 + enum { OPT_c = (1 << 0), OPT_d = (1 << 1), -- cgit v1.2.3