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
This commit is contained in:
parent
3ba6ebdb2a
commit
f0176c5c6f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user