Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun Add a missing #if to allow non-wscons compilation.



details:   https://anonhg.NetBSD.org/src/rev/079967479012
branches:  trunk
changeset: 580551:079967479012
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 29 10:49:26 2005 +0000

description:
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 8d8e54071276 -r 079967479012 sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Fri Apr 29 10:41:18 2005 +0000
+++ b/sys/dev/sun/kbd.c Fri Apr 29 10:49:26 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.44 2005/04/28 15:03:48 martin Exp $  */
+/*     $NetBSD: kbd.c,v 1.45 2005/04/29 10:49:26 martin Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.44 2005/04/28 15:03:48 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.45 2005/04/29 10:49:26 martin 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