summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-18 00:19:46 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-03-18 00:19:46 +0000
commit5b901a6d0dac476ac466dc1f4c02b56be12bed5a (patch)
tree8c810b0130a4e3b1e32e03940d79564dbef6926c /sys/arch/hppa
parentac0efa0c8e73c6d2612b3bf904aa2e627eab72b5 (diff)
no keyboard -- no cry
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/wscons_machdep.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/wscons_machdep.c b/sys/arch/hppa/hppa/wscons_machdep.c
index a055c012237..8c721c993e4 100644
--- a/sys/arch/hppa/hppa/wscons_machdep.c
+++ b/sys/arch/hppa/hppa/wscons_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wscons_machdep.c,v 1.1 2002/03/15 22:50:05 mickey Exp $ */
+/* $OpenBSD: wscons_machdep.c,v 1.2 2002/03/18 00:19:45 mickey Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -123,7 +123,11 @@ int
wscngetc(dev)
dev_t dev;
{
+#if NWSKBD > 0
return (wskbd_cngetc(dev));
+#else
+ return (0);
+#endif
}
void
@@ -131,5 +135,7 @@ wscnpollc(dev, on)
dev_t dev;
int on;
{
+#if NWSKBD > 0
wskbd_cnpollc(dev, on);
+#endif
}