From 2619d7c27138216cf09192b1f5197d23a5372cfa Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 8 Feb 2002 09:37:12 +0000 Subject: [PATCH] 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(-) diff --git a/usr.sbin/kbdcontrol/kbdcontrol.c b/usr.sbin/kbdcontrol/kbdcontrol.c index aed71476370f..a92c825b05eb 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