summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-06-10 16:54:43 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-06-10 16:54:43 +0000
commitf7519ee58ad66d0cd8e57c7f00877079ac3ced7f (patch)
treefb50ee9dc9fe79b15d8d7b57ea6e2f71368d647b /sys/arch/sparc/dev
parent2da9b20fdb43a825b5c1b99f3d73e13ff88ebe87 (diff)
permit compilation when only SUN4C is defined; based on patch from Thomas Coffy <coffy@altern.org>.
Diffstat (limited to 'sys/arch/sparc/dev')
-rw-r--r--sys/arch/sparc/dev/led.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc/dev/led.c b/sys/arch/sparc/dev/led.c
index e7f535b2042..fffc372acf6 100644
--- a/sys/arch/sparc/dev/led.c
+++ b/sys/arch/sparc/dev/led.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: led.c,v 1.6 2001/01/30 03:55:10 jason Exp $ */
+/* $OpenBSD: led.c,v 1.7 2001/06/10 16:54:42 jason Exp $ */
/*
* Copyright (c) 1998 Jason L. Wright (jason@thought.net)
@@ -77,9 +77,8 @@ ledmatch(parent, vcf, aux)
struct device *parent;
void *vcf, *aux;
{
-#if defined(SUN4)
+#if defined(SUN4) || defined(SUN4M)
struct cfdata *cf = vcf;
-#endif
struct confargs *ca = aux;
register struct romaux *ra = &ca->ca_ra;
@@ -89,7 +88,7 @@ ledmatch(parent, vcf, aux)
return (0);
return (1);
}
-#endif
+#endif /* SUN4M */
#if defined(SUN4)
if (ca->ca_bustype == BUS_MAIN) {
@@ -99,7 +98,8 @@ ledmatch(parent, vcf, aux)
return (1);
return (0);
}
-#endif
+#endif /* SUN4 */
+#endif /* SUN4 || SUN4M */
return (0);
}