diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-01-23 18:31:56 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-01-23 18:31:56 +0000 |
commit | 111dab8175570784d1ee41747fac806c5c96f407 (patch) | |
tree | 36bae310933484f7819382fb56db91506751ba0d /sbin/ifconfig/ifconfig.c | |
parent | 7d969b968efb5cae6230c4b08fdf802f366cc4e3 (diff) | |
download | FreeBSD-src-111dab8175570784d1ee41747fac806c5c96f407.zip FreeBSD-src-111dab8175570784d1ee41747fac806c5c96f407.tar.gz |
Add missing #if USE_IF_MEDIA/#endif.
Diffstat (limited to 'sbin/ifconfig/ifconfig.c')
-rw-r--r-- | sbin/ifconfig/ifconfig.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index a3919c0..1c0101d 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -1159,7 +1159,10 @@ status(const struct afswtch *afp, int addrcount, struct sockaddr_dl *sdl, if (ioctl(s, SIOCGIFSTATUS, &ifs) == 0) printf("%s", ifs.ascii); - if (!allfamilies && !p && afp->af_status != media_status && + if (!allfamilies && !p && +#ifdef USE_IF_MEDIA + afp->af_status != media_status && +#endif afp->af_status != link_status #ifdef USE_VLANS && afp->af_status != vlan_status |