remove an undefined reference when no VLAN support is compiled in.
This commit is contained in:
parent
ddef5da232
commit
4be44d4baa
@ -7,11 +7,13 @@ SRCS= ifconfig.c
|
||||
#comment out to exclude SIOC[GS]IFMEDIA support
|
||||
SRCS+= ifmedia.c
|
||||
CFLAGS+=-DUSE_IF_MEDIA
|
||||
.if !defined(RELEASE_CRUNCH)
|
||||
CFLAGS+=-DINET6
|
||||
|
||||
#comment out to exclude SIOC[GS]ETVLAN support
|
||||
SRCS+= ifvlan.c
|
||||
CFLAGS+=-DUSE_VLANS
|
||||
.endif
|
||||
|
||||
MAN8= ifconfig.8
|
||||
DPADD= ${LIBIPX}
|
||||
|
@ -975,7 +975,11 @@ status(afp, addrcount, sdl, ifm, ifam)
|
||||
printf("%s", ifs.ascii);
|
||||
|
||||
if (!allfamilies && !p && afp->af_status != media_status &&
|
||||
afp->af_status != ether_status && afp->af_status != vlan_status)
|
||||
afp->af_status != ether_status
|
||||
#ifdef USE_VLANS
|
||||
afp->af_status != vlan_status
|
||||
#endif
|
||||
)
|
||||
warnx("%s has no %s interface address!", name, afp->af_name);
|
||||
|
||||
close(s);
|
||||
|
Loading…
Reference in New Issue
Block a user