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

This commit is contained in:
Luigi Rizzo 2000-11-30 21:35:09 +00:00
parent 019d04d147
commit ee7b8babab
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69414
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);