Date: Thu, 6 Nov 2008 09:07:56 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r184709 - head/sys/net Message-ID: <200811060907.mA697ue4050298@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Thu Nov 6 09:07:56 2008 New Revision: 184709 URL: http://svn.freebsd.org/changeset/base/184709 Log: 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 Modified: head/sys/net/if_fddisubr.c Modified: head/sys/net/if_fddisubr.c ============================================================================== --- head/sys/net/if_fddisubr.c Thu Nov 6 08:55:46 2008 (r184708) +++ head/sys/net/if_fddisubr.c Thu Nov 6 09:07:56 2008 (r184709) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811060907.mA697ue4050298>