Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sun In fb_bell call kbd_docmd only #if NKBD > 0.



details:   https://anonhg.NetBSD.org/src/rev/2b785a9db40b
branches:  trunk
changeset: 517399:2b785a9db40b
user:      uwe <uwe%NetBSD.org@localhost>
date:      Mon Nov 12 08:14:30 2001 +0000

description:
In fb_bell call kbd_docmd only #if NKBD > 0.
This allows kernels without kbd at zs to be linked.
(JavaStation-1 does not have zs, it uses pckbc instead)

diffstat:

 sys/dev/sun/fb.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r cdc4a5ab064c -r 2b785a9db40b sys/dev/sun/fb.c
--- a/sys/dev/sun/fb.c  Mon Nov 12 07:33:40 2001 +0000
+++ b/sys/dev/sun/fb.c  Mon Nov 12 08:14:30 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fb.c,v 1.4 2001/09/26 20:53:16 eeh Exp $ */
+/*     $NetBSD: fb.c,v 1.5 2001/11/12 08:14:30 uwe Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -64,6 +64,7 @@
 #include <dev/sun/fbio.h>
 #include <dev/sun/fbvar.h>
 
+#include "kbd.h"
 #include "pfour.h"
 
 static struct fbdevice *devfb;
@@ -348,7 +349,9 @@
 fb_bell(on)
        int on;
 {
+#if NKBD > 0
        (void)kbd_docmd(on?KBD_CMD_BELL:KBD_CMD_NOBELL, 0);
+#endif
 }
 
 void



Home | Main Index | Thread Index | Old Index