Source-Changes-HG archive

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

[src/netbsd-3]: src/sys/dev/sun Pull up revision 1.45 (requested by martin in...



details:   https://anonhg.NetBSD.org/src/rev/68519d2c176d
branches:  netbsd-3
changeset: 576048:68519d2c176d
user:      snj <snj%NetBSD.org@localhost>
date:      Thu Jun 09 07:05:21 2005 +0000

description:
Pull up revision 1.45 (requested by martin in ticket #380):
Add a missing #if to allow non-wscons compilation.
Noted by Juergen Hannken-Illjes.

diffstat:

 sys/dev/sun/kbd.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r b3352ff77027 -r 68519d2c176d sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Thu Jun 09 07:03:38 2005 +0000
+++ b/sys/dev/sun/kbd.c Thu Jun 09 07:05:21 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.43.2.1 2005/06/09 06:59:33 snj Exp $ */
+/*     $NetBSD: kbd.c,v 1.43.2.2 2005/06/09 07:05:21 snj Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.43.2.1 2005/06/09 06:59:33 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.43.2.2 2005/06/09 07:05:21 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -183,6 +183,7 @@
        if (k == NULL)
                return (ENXIO);
 
+#if NWSKBD > 0
        /*
         * NB: wscons support: while we can track if wskbd has called
         * enable(), we can't tell if that's for console input or for
@@ -191,6 +192,7 @@
         */
        if (!k->k_wsenabled)
                wssunkbd_enable(k, 1);
+#endif
 
        /* exclusive open required for /dev/kbd */
        if (k->k_events.ev_io)



Home | Main Index | Thread Index | Old Index