summaryrefslogtreecommitdiff
path: root/sys/arch/sparc
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1998-12-22 15:40:31 +0000
committerJason Wright <jason@cvs.openbsd.org>1998-12-22 15:40:31 +0000
commit0c55518401d6b19975fcb5e4113e9163e5935647 (patch)
tree4ce9bb9e60ca5fa354e79bf15abf3404475d283d /sys/arch/sparc
parent734d24dcbc1ddc21e5c420e59b8e52cf4b2f633c (diff)
only define le_softc variables ifdef SUN4M; C. W. Wilkerson (wilker@purdue116.gte.net).
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r--sys/arch/sparc/dev/if_le.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/sparc/dev/if_le.c b/sys/arch/sparc/dev/if_le.c
index e18f41f8da2..64ec0b7fc3a 100644
--- a/sys/arch/sparc/dev/if_le.c
+++ b/sys/arch/sparc/dev/if_le.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_le.c,v 1.14 1998/12/13 21:47:09 deraadt Exp $ */
+/* $OpenBSD: if_le.c,v 1.15 1998/12/22 15:40:30 jason Exp $ */
/* $NetBSD: if_le.c,v 1.50 1997/09/09 20:54:48 pk Exp $ */
/*-
@@ -213,7 +213,9 @@ lemediachange(ifp)
{
struct am7990_softc *sc = ifp->if_softc;
struct ifmedia *ifm = &sc->sc_ifmedia;
+#if defined(SUN4M)
struct le_softc *lesc = (struct le_softc *)sc;
+#endif
if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER)
return (EINVAL);