From a7ad20b70168fdfeaed46b17f89eaec122f61144 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 12 Apr 2002 02:16:02 +0000 Subject: kbd setting code for the installer. kbd needs to be compiled without KVM support. smat@acm.org, miod, and krw. --- sbin/kbd/kbd_wscons.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sbin') diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c index 1c4ce389824..974577b4faf 100644 --- a/sbin/kbd/kbd_wscons.c +++ b/sbin/kbd/kbd_wscons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd_wscons.c,v 1.5 2002/02/19 01:49:58 maja Exp $ */ +/* $OpenBSD: kbd_wscons.c,v 1.6 2002/04/12 02:16:01 deraadt Exp $ */ /* * Copyright (c) 2001 Mats O Jansson. All rights reserved. @@ -88,6 +88,7 @@ struct nameint kbdvar_tab[] = { extern char *__progname; int rebuild = 0; +#ifndef NOKVM void kbd_show_enc(kd, idx) kvm_t *kd; @@ -137,6 +138,7 @@ kbd_show_enc(kd, idx) } printf("\n"); } +#endif void kbd_list() @@ -175,6 +177,7 @@ kbd_list() } } +#ifndef NOKVM if ((kd = kvm_openfiles(NULL,NULL,NULL,O_RDONLY, errbuf)) == 0) errx(1, "kvm_openfiles: %s", errbuf); @@ -201,6 +204,9 @@ kbd_list() if (rebuild > 0) { printf("Unknown encoding or variant. kbd(1) needs to be rebuild.\n"); } +#else + printf("List not available, sorry.\n"); +#endif } void -- cgit v1.2.3