fix build after token ring removal; from steven@ but i prefer the #ifdef

This commit is contained in:
naddy 2007-06-09 16:45:50 +00:00
parent 5d24e0f487
commit aeeb155adf
2 changed files with 15 additions and 2 deletions

View File

@ -1,10 +1,10 @@
# $OpenBSD: Makefile,v 1.9 2007/03/30 19:23:46 naddy Exp $
# $OpenBSD: Makefile,v 1.10 2007/06/09 16:45:50 naddy Exp $
COMMENT-main= "eXtensible Open Router Platform"
VERSION= 1.4
DISTNAME= xorp-${VERSION}
PKGNAME-main= ${DISTNAME}p0
PKGNAME-main= ${DISTNAME}p1
CATEGORIES= net
HOMEPAGE= http://www.xorp.org/

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-fea_ifconfig_media_cc,v 1.1 2007/06/09 16:45:50 naddy Exp $
--- fea/ifconfig_media.cc.orig Fri Jun 8 00:04:20 2007
+++ fea/ifconfig_media.cc Fri Jun 8 00:04:52 2007
@@ -95,7 +95,9 @@ ifconfig_media_get_link_status(const string& if_name,
switch (IFM_TYPE(ifmr.ifm_active)) {
case IFM_ETHER:
case IFM_FDDI:
+#if defined(IFM_TOKEN)
case IFM_TOKEN:
+#endif
case IFM_IEEE80211:
if ((ifmr.ifm_status & IFM_AVALID)
&& (ifmr.ifm_status & IFM_ACTIVE)) {