diff options
Diffstat (limited to 'usr.sbin/kbdcontrol/kbdcontrol.c')
-rw-r--r-- | usr.sbin/kbdcontrol/kbdcontrol.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index aed7147..a92c825 100644 --- a/usr.sbin/kbdcontrol/kbdcontrol.c +++ b/usr.sbin/kbdcontrol/kbdcontrol.c @@ -44,9 +44,15 @@ static const char rcsid[] = #include "lex.h" /* - * PASTE isn't defined in 4.x, but we need it to bridge to 5.0-current - * so define it here as a stop gap transition measure. + * HALT, PDWN, and PASTE aren't defined in 4.x, but we need them to bridge + * to 5.0-current so define them here as a stop gap transition measure. */ +#ifndef HALT +#define HALT 0xa1 /* halt machine */ +#endif +#ifndef PDWN +#define PDWN 0xa2 /* halt machine and power down */ +#endif #ifndef PASTE #define PASTE 0xa3 /* paste from cut-paste buffer */ #endif |