From a051ad011b2cab2c23c832989cc9a69f7afbf577 Mon Sep 17 00:00:00 2001 From: ru Date: Fri, 8 Feb 2002 09:37:12 +0000 Subject: FreeBSD 4.1 bootstrapping aid (HALT and PDWN are not defined there). --- usr.sbin/kbdcontrol/kbdcontrol.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usr.sbin/kbdcontrol/kbdcontrol.c') 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 -- cgit v1.1