summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kbdcontrol
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-02-08 09:37:12 +0000
committerru <ru@FreeBSD.org>2002-02-08 09:37:12 +0000
commita051ad011b2cab2c23c832989cc9a69f7afbf577 (patch)
treea4896aa87c1c30c4fac879aee486b470b791aa8d /usr.sbin/kbdcontrol
parent3c399316039b8596935aedb8bebaff0c034d2481 (diff)
downloadFreeBSD-src-a051ad011b2cab2c23c832989cc9a69f7afbf577.zip
FreeBSD-src-a051ad011b2cab2c23c832989cc9a69f7afbf577.tar.gz
FreeBSD 4.1 bootstrapping aid (HALT and PDWN are not defined there).
Diffstat (limited to 'usr.sbin/kbdcontrol')
-rw-r--r--usr.sbin/kbdcontrol/kbdcontrol.c10
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
OpenPOWER on IntegriCloud