diff options
author | bz <bz@FreeBSD.org> | 2008-11-06 09:07:56 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-06 09:07:56 +0000 |
commit | cf44c03d504979f24cf3a91b6e3f055bd2426a99 (patch) | |
tree | 38adea8aa3d71ad1562825c8d48d941cc3034f56 /sys/net | |
parent | e680478613663113e71f8ff0ceb4383e6d57d90d (diff) | |
download | FreeBSD-src-cf44c03d504979f24cf3a91b6e3f055bd2426a99.zip FreeBSD-src-cf44c03d504979f24cf3a91b6e3f055bd2426a99.tar.gz |
Hide an unused variable in case we compile without INET.
Include ethernet.h directly so that the constants are always defined.
Makes fddi compile without INET.
MFC after: 2 months
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_fddisubr.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index a8eab74..752400e 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -56,6 +56,7 @@ #include <net/if_llc.h> #include <net/if_types.h> +#include <net/ethernet.h> #include <net/netisr.h> #include <net/route.h> #include <net/bpf.h> @@ -695,7 +696,9 @@ fddi_resolvemulti(ifp, llsa, sa) struct sockaddr *sa; { struct sockaddr_dl *sdl; +#ifdef INET struct sockaddr_in *sin; +#endif #ifdef INET6 struct sockaddr_in6 *sin6; #endif |