summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-01-04 20:32:56 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-01-04 20:32:56 +0000
commitf184333caaae2b5a14eaef856635d7190fa34099 (patch)
treefed967ab775e725c32e1aee8843a153477f13dea /sys/arch/sparc/dev
parent578d066d4aeb4fbb6b30242cd2d2c78db5bfaa57 (diff)
Make this compile for SUN4 only kernels.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/fb.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index 92495f2d5ca..7a055f38051 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.44 2008/12/26 22:30:21 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.45 2009/01/04 20:32:55 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -304,7 +304,10 @@ void
fbwscons_init(struct sunfb *sf, int isconsole)
{
struct rasops_info *ri = &sf->sf_ro;
- int cols, rows, fw, fh, wt, wl;
+ int cols, rows;
+#if defined(SUN4C) || defined(SUN4M)
+ int fw, fh, wt, wl;
+#endif
/* ri_hw and ri_bits must have already been setup by caller */
ri->ri_flg = RI_FULLCLEAR;