summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2000-11-30 21:35:09 +0000
committerluigi <luigi@FreeBSD.org>2000-11-30 21:35:09 +0000
commit4be44d4baa03936003ffa23ce98ceb8b3cb4175e (patch)
treeb786b41a28747f86b9e3a8a8df1089ef29371df4 /sbin
parentddef5da232a1a6e5c45ac581986e45f400cccfc1 (diff)
downloadFreeBSD-src-4be44d4baa03936003ffa23ce98ceb8b3cb4175e.zip
FreeBSD-src-4be44d4baa03936003ffa23ce98ceb8b3cb4175e.tar.gz
remove an undefined reference when no VLAN support is compiled in.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ifconfig/Makefile2
-rw-r--r--sbin/ifconfig/ifconfig.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/sbin/ifconfig/Makefile b/sbin/ifconfig/Makefile
index fe7f88c..675738e 100644
--- a/sbin/ifconfig/Makefile
+++ b/sbin/ifconfig/Makefile
@@ -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}
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c
index 273e2a8..8f4e6b8 100644
--- a/sbin/ifconfig/ifconfig.c
+++ b/sbin/ifconfig/ifconfig.c
@@ -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);
OpenPOWER on IntegriCloud