diff options
author | bz <bz@FreeBSD.org> | 2008-11-06 09:18:29 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-11-06 09:18:29 +0000 |
commit | 11694fd16b46543eff4b81ad00facb942b66cb34 (patch) | |
tree | 6281e54291e248751b2d6aad9b43d591902d7645 /sys/net/if_iso88025subr.c | |
parent | cf44c03d504979f24cf3a91b6e3f055bd2426a99 (diff) | |
download | FreeBSD-src-11694fd16b46543eff4b81ad00facb942b66cb34.zip FreeBSD-src-11694fd16b46543eff4b81ad00facb942b66cb34.tar.gz |
Hide an unused variable in case we compile without INET.
Include ethernet.h and if_arp.h directly so that the constants are
always defined.
Makes token compile without INET.
MFC after: 2 months
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r-- | sys/net/if_iso88025subr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c index 0c915c9..00e323a 100644 --- a/sys/net/if_iso88025subr.c +++ b/sys/net/if_iso88025subr.c @@ -55,10 +55,12 @@ #include <sys/sockio.h> #include <net/if.h> +#include <net/if_arp.h> #include <net/if_dl.h> #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 +697,9 @@ iso88025_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 |