summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2005-02-22 10:00:58 +0000
committermiod <miod@openbsd.org>2005-02-22 10:00:58 +0000
commita04f47cc934d56f36cfaec64f9a7a0753b827504 (patch)
tree3993e50c6b55a96ef4c835079699fe137f82c290
parentFrom part of NetBSD rtw.c rev 1.36: (diff)
downloadwireguard-openbsd-a04f47cc934d56f36cfaec64f9a7a0753b827504.tar.xz
wireguard-openbsd-a04f47cc934d56f36cfaec64f9a7a0753b827504.zip
Allow SUN4 kernels to compile; spotted by marc@
-rw-r--r--sys/arch/sparc/dev/fb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c
index bf110c2af7f..ec31c0dbdf8 100644
--- a/sys/arch/sparc/dev/fb.c
+++ b/sys/arch/sparc/dev/fb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fb.c,v 1.29 2004/11/29 22:07:37 miod Exp $ */
+/* $OpenBSD: fb.c,v 1.30 2005/02/22 10:00:58 miod Exp $ */
/* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */
/*
@@ -90,7 +90,9 @@
#include "wsdisplay.h"
+#if defined(SUN4C) || defined(SUN4M)
static int a2int(char *, int);
+#endif
static void fb_initwsd(struct sunfb *);
/*
@@ -284,6 +286,7 @@ obpsize:
sf->sf_fbsize = sf->sf_height * sf->sf_linebytes;
}
+#if defined(SUN4C) || defined(SUN4M)
static int
a2int(char *cp, int deflt)
{
@@ -295,6 +298,7 @@ a2int(char *cp, int deflt)
i = i * 10 + *cp++ - '0';
return (i);
}
+#endif
/* setup the embedded wsscreen_descr structure from rasops settings */
static void