diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-02-22 10:00:59 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-02-22 10:00:59 +0000 |
commit | 5e986e89d5b2cda04e893a0f7105e496d1b195e2 (patch) | |
tree | 089b61e5d0163637ce8150a4e13d931a7c93a037 | |
parent | 7969dd25b529992828048bd117ef1fe51464f1e0 (diff) |
Allow SUN4 kernels to compile; spotted by marc@
-rw-r--r-- | sys/arch/sparc/dev/fb.c | 6 |
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 |