From ef7f2d6bba55bb9fb1d0ff03420c07b0c048ee54 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Wed, 10 Mar 2004 13:40:41 +0000 Subject: Various fixes / improvements. See PR for details. PR: ports/63759 Submitted by: Cyrille Lefevre --- net-mgmt/net-snmp/files/patch-hr_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'net-mgmt/net-snmp/files/patch-hr_storage.c') diff --git a/net-mgmt/net-snmp/files/patch-hr_storage.c b/net-mgmt/net-snmp/files/patch-hr_storage.c index a1eff0ab8301..e5638709fbfa 100644 --- a/net-mgmt/net-snmp/files/patch-hr_storage.c +++ b/net-mgmt/net-snmp/files/patch-hr_storage.c @@ -24,7 +24,7 @@ #elif defined(MBSTAT_SYMBOL) +#if !defined(__FreeBSD__) || __FreeBSD_version < 500021 long_return = mbstat.m_mbufs; -+#elif __FreeBSD_version < 500024 ++#elif defined(freebsd5) && __FreeBSD_version < 500024 + /* mbuf stats disabled */ + return NULL; +#else @@ -40,7 +40,7 @@ #elif defined(MBSTAT_SYMBOL) +#if !defined(__FreeBSD__) || __FreeBSD_version < 500021 long_return = mbstat.m_clusters - mbstat.m_clfree; /* unlikely, but... */ -+#elif __FreeBSD_version < 500024 ++#elif defined(freebsd5) && __FreeBSD_version < 500024 + /* mbuf stats disabled */ + return NULL; +#else -- cgit v1.2.3