svn commit: r184712 - head/sys/dev/en
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Nov 6 01:41:32 PST 2008
Author: bz
Date: Thu Nov 6 09:41:31 2008
New Revision: 184712
URL: http://svn.freebsd.org/changeset/base/184712
Log:
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
Modified:
head/sys/dev/en/midway.c
Modified: head/sys/dev/en/midway.c
==============================================================================
--- head/sys/dev/en/midway.c Thu Nov 6 09:27:47 2008 (r184711)
+++ head/sys/dev/en/midway.c Thu Nov 6 09:41:31 2008 (r184712)
@@ -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;
More information about the svn-src-all
mailing list