diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-05-18 21:31:28 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-05-18 21:31:28 +0000 |
commit | 0af5de563017ada09bfee142d6a78424a565ba2a (patch) | |
tree | eaac1120e9117620655b6a6a6ce1cb34b1191274 /sys/dev/wscons/wskbd.c | |
parent | f8da720e8d8ceb4db6988f25c65e3c6495eeea51 (diff) |
Do not compile the screen burner code if SMALL_KERNEL, helps floppies.
ok deraadt@
Diffstat (limited to 'sys/dev/wscons/wskbd.c')
-rw-r--r-- | sys/dev/wscons/wskbd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index c011d8958c0..82368f82d19 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbd.c,v 1.42 2005/05/15 11:29:15 miod Exp $ */ +/* $OpenBSD: wskbd.c,v 1.43 2005/05/18 21:31:27 miod Exp $ */ /* $NetBSD: wskbd.c,v 1.80 2005/05/04 01:52:16 augustss Exp $ */ /* @@ -79,6 +79,10 @@ * to `wscons_events' and passes them up to the appropriate reader. */ +#ifndef SMALL_KERNEL +#define BURNER_SUPPORT +#endif + #include <sys/param.h> #include <sys/conf.h> #include <sys/device.h> @@ -591,8 +595,10 @@ wskbd_input(struct device *dev, u_int type, int value) * send upstream. */ if (sc->sc_translating) { +#ifdef BURNER_SUPPORT if (type == WSCONS_EVENT_KEY_DOWN && sc->sc_displaydv != NULL) wsdisplay_burn(sc->sc_displaydv, WSDISPLAY_BURN_KBD); +#endif num = wskbd_translate(sc->id, type, value); if (num > 0) { if (sc->sc_base.me_dispdv != NULL) { |