diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-05-13 22:58:09 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-05-13 22:58:09 +0000 |
commit | f9fac584993f51d45ceda5a7051717c3eb5971a3 (patch) | |
tree | 8d640ae0bfd153e402817f53285e63c2592b0ccb /net-mgmt/net-snmp | |
parent | cd529f9e95df0b52dfd449c98fbdad4ef883b8ac (diff) | |
download | ports-f9fac584993f51d45ceda5a7051717c3eb5971a3.tar.gz ports-f9fac584993f51d45ceda5a7051717c3eb5971a3.zip |
Notes
Diffstat (limited to 'net-mgmt/net-snmp')
-rw-r--r-- | net-mgmt/net-snmp/files/patch-hr_storage.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net-mgmt/net-snmp/files/patch-hr_storage.c b/net-mgmt/net-snmp/files/patch-hr_storage.c index 1f7ae7a5e969..2480b9a02395 100644 --- a/net-mgmt/net-snmp/files/patch-hr_storage.c +++ b/net-mgmt/net-snmp/files/patch-hr_storage.c @@ -13,7 +13,7 @@ void sol_get_swapinfo(int *, int *); #endif -+#if defined(__FreeBSD__) && __FreeBSD_version >= 500024 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500102 +void collect_mbuf(long *long_mbuf, long *long_mbufc); +#endif + @@ -117,7 +117,7 @@ #elif defined(MBSTAT_SYMBOL) +#if !defined(__FreeBSD__) || __FreeBSD_version < 500021 long_return = mbstat.m_clusters - mbstat.m_clfree; /* unlikely, but... */ -+#elif defined(__FreeBSD__) && __FreeBSD_version < 500024 ++#elif defined(__FreeBSD__) && __FreeBSD_version < 500102 + /* mbuf stats disabled */ + return NULL; +#elif defined(__FreeBSD__) @@ -134,7 +134,7 @@ #endif break; #endif /* !linux && !solaris2 && !hpux10 && !hpux11 && ... */ -+#if defined(__FreeBSD__) && __FreeBSD_version >= 500024 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500102 + case HRS_TYPE_MBUFCLUSTER: + collect_mbuf(NULL, &long_return); + break; @@ -147,7 +147,7 @@ } #endif /* solaris2 */ + -+#if defined(__FreeBSD__) && __FreeBSD_version >= 500024 ++#if defined(__FreeBSD__) && __FreeBSD_version >= 500102 +void +collect_mbuf(long *long_mbuf, long *long_mbufc) +{ |