aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_iso88025subr.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2008-11-06 09:18:29 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2008-11-06 09:18:29 +0000
commit9939ceb05cc327bd2d5525389aa4cceda4319cab (patch)
tree6281e54291e248751b2d6aad9b43d591902d7645 /sys/net/if_iso88025subr.c
parent41d9907a4bf09a9816ebeb38d5d5a91ea17d721d (diff)
downloadsrc-9939ceb05cc327bd2d5525389aa4cceda4319cab.tar.gz
src-9939ceb05cc327bd2d5525389aa4cceda4319cab.zip
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
Notes
Notes: svn path=/head/; revision=184710
Diffstat (limited to 'sys/net/if_iso88025subr.c')
-rw-r--r--sys/net/if_iso88025subr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_iso88025subr.c b/sys/net/if_iso88025subr.c
index 0c915c96b161..00e323a95996 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