summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-06-23 17:41:22 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-06-23 17:41:22 +0000
commitfa448016fe817df11f8dcff53102fe2962cb22ed (patch)
tree9046163151d41c083ac003b923d5bd4a5f2bf637 /sbin
parentd17b6d9b88879525d09532690788f82309c00e3f (diff)
Do not compile the ``kbd needs to be rebuilt'' test if -DNOKVM. Should shave
a few bytes off the installation media filesystems.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/kbd/kbd_wscons.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/kbd/kbd_wscons.c b/sbin/kbd/kbd_wscons.c
index 657a7db1f58..6cd114b05ad 100644
--- a/sbin/kbd/kbd_wscons.c
+++ b/sbin/kbd/kbd_wscons.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kbd_wscons.c,v 1.24 2006/07/31 22:09:37 miod Exp $ */
+/* $OpenBSD: kbd_wscons.c,v 1.25 2008/06/23 17:41:21 miod Exp $ */
/*
* Copyright (c) 2001 Mats O Jansson. All rights reserved.
@@ -81,7 +81,9 @@ struct nlist nl[] = {
};
#endif /* NOKVM */
+#ifndef NOKVM
int rebuild = 0;
+#endif
struct nameint {
int value;
@@ -243,9 +245,9 @@ kbd_list(void)
#ifndef NOKVM
kvm_close(kd);
-#endif
if (rebuild > 0)
printf("Unknown encoding or variant. kbd(8) needs to be rebuilt.\n");
+#endif
}
void