remove an undefined reference when no VLAN support is compiled in.

This commit is contained in:
luigi 2000-11-30 21:35:09 +00:00
parent ddef5da232
commit 4be44d4baa
2 changed files with 7 additions and 1 deletions

View File

@ -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}

View File

@ -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);