diff options
author | bz <bz@FreeBSD.org> | 2008-11-06 09:41:31 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-06 09:41:31 +0000 |
commit | 2109be665616c81b3ff914c6bae03105b492c544 (patch) | |
tree | cb8aaf382d52b13be9b11621ec6c21989eb4c264 /sys/dev | |
parent | 5faa66b0032a9bd75770e8d6459abeeb625997ac (diff) | |
download | FreeBSD-src-2109be665616c81b3ff914c6bae03105b492c544.zip FreeBSD-src-2109be665616c81b3ff914c6bae03105b492c544.tar.gz |
Hide an unused variable in case we compile with neither INET nor INET6.
NATM needs 'struct in_addr' to compile, which is a problem on its own
but include in.h for now if we have NATM but neither INET or INET6.
MFC after: 2 months
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/en/midway.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/en/midway.c b/sys/dev/en/midway.c index b937ca8..e94ca78 100644 --- a/sys/dev/en/midway.c +++ b/sys/dev/en/midway.c @@ -141,10 +141,12 @@ enum { #include <net/if_media.h> #include <net/if_atm.h> -#if defined(INET) || defined(INET6) +#if defined(NATM) || defined(INET) || defined(INET6) #include <netinet/in.h> +#if defined(INET) || defined(INET6) #include <netinet/if_atm.h> #endif +#endif #ifdef NATM #include <netnatm/natm.h> @@ -1524,7 +1526,9 @@ static int en_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) { struct en_softc *sc = (struct en_softc *)ifp->if_softc; +#if defined(INET) || defined(INET6) struct ifaddr *ifa = (struct ifaddr *)data; +#endif struct ifreq *ifr = (struct ifreq *)data; struct atmio_vcctable *vtab; int error = 0; |