diff options
author | kuriyama <kuriyama@FreeBSD.org> | 2004-05-14 06:58:09 +0800 |
---|---|---|
committer | kuriyama <kuriyama@FreeBSD.org> | 2004-05-14 06:58:09 +0800 |
commit | 45847fb734bf54e7681d2219e63e75ab099168db (patch) | |
tree | a50c8cca09b0607e8e28246cd28efab77b725bd2 /net-mgmt | |
parent | d475d3964416bcca1c227942924fb90b8f4af31d (diff) | |
download | freebsd-ports-graphics-45847fb734bf54e7681d2219e63e75ab099168db.tar.gz freebsd-ports-graphics-45847fb734bf54e7681d2219e63e75ab099168db.tar.zst freebsd-ports-graphics-45847fb734bf54e7681d2219e63e75ab099168db.zip |
Unbreak on 5.0.
My mbuf statistics code works only after 5.1-REL.
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-hr_storage.c | 8 | ||||
-rw-r--r-- | net-mgmt/net-snmp/files/patch-hr_storage.c | 8 | ||||
-rw-r--r-- | net-mgmt/net-snmp53/files/patch-hr_storage.c | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-hr_storage.c b/net-mgmt/net-snmp-devel/files/patch-hr_storage.c index 1f7ae7a5e96..2480b9a0239 100644 --- a/net-mgmt/net-snmp-devel/files/patch-hr_storage.c +++ b/net-mgmt/net-snmp-devel/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) +{ diff --git a/net-mgmt/net-snmp/files/patch-hr_storage.c b/net-mgmt/net-snmp/files/patch-hr_storage.c index 1f7ae7a5e96..2480b9a0239 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) +{ diff --git a/net-mgmt/net-snmp53/files/patch-hr_storage.c b/net-mgmt/net-snmp53/files/patch-hr_storage.c index 1f7ae7a5e96..2480b9a0239 100644 --- a/net-mgmt/net-snmp53/files/patch-hr_storage.c +++ b/net-mgmt/net-snmp53/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) +{ |