summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-08 18:02:30 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-08 18:02:30 +0000
commitaa557a2105c817654ba93666792389b526342716 (patch)
tree180a897c0b13f7143e5be406973678be0796f4b7
parent511b177ef7304d0a0d691e3859daa4784679d1a0 (diff)
Don't reference kbd_docmd() unless NKBD > 0; reported by Steven Siirila <sfs@Siirila.org> (pr2052)
-rw-r--r--sys/arch/sparc/dev/fb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index 06f52392aa9..a9148a0e069 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.15 1999/09/05 18:51:08 jason Exp $ */
+/* $OpenBSD: fb.c,v 1.16 2001/09/08 18:02:29 jason Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -66,6 +66,8 @@
#include <sparc/dev/pfourreg.h>
#endif
+#include "kbd.h"
+
static struct fbdevice *devfb;
@@ -382,7 +384,9 @@ static void
fb_bell(on)
int on;
{
+#if NKBD > 0
(void)kbd_docmd(on?KBD_CMD_BELL:KBD_CMD_NOBELL, 0);
+#endif
}
#include <sparc/dev/rcons_font.h>