summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-03-08 02:47:13 +0000
committerminskim <minskim@pkgsrc.org>2006-03-08 02:47:13 +0000
commitf5825cacf322975912d41be60326e47684fbcc72 (patch)
tree42ead08da57c90273f66767a76f40b433fa8c62b /net/net-snmp/patches
parent4d0d0c47a56bfa3906383c97d8bc72bc97e531d7 (diff)
downloadpkgsrc-f5825cacf322975912d41be60326e47684fbcc72.tar.gz
Remove a duplicate case value on Darwin 8.x.
Diffstat (limited to 'net/net-snmp/patches')
-rw-r--r--net/net-snmp/patches/patch-ag25
1 files changed, 23 insertions, 2 deletions
diff --git a/net/net-snmp/patches/patch-ag b/net/net-snmp/patches/patch-ag
index 74ecdb86136..9198fab106c 100644
--- a/net/net-snmp/patches/patch-ag
+++ b/net/net-snmp/patches/patch-ag
@@ -1,6 +1,6 @@
-$NetBSD: patch-ag,v 1.5 2006/01/24 22:16:55 adam Exp $
+$NetBSD: patch-ag,v 1.6 2006/03/08 02:47:13 minskim Exp $
---- agent/mibgroup/host/hr_storage.c.orig 2006-01-24 22:10:22.000000000 +0100
+--- agent/mibgroup/host/hr_storage.c.orig 2005-10-31 01:14:38.000000000 -0800
+++ agent/mibgroup/host/hr_storage.c
@@ -73,6 +73,13 @@
#endif
@@ -30,3 +30,24 @@ $NetBSD: patch-ag,v 1.5 2006/01/24 22:16:55 adam Exp $
#endif
#if HAVE_SYS_MBUF_H
#include <sys/mbuf.h>
+@@ -732,11 +732,6 @@ really_try_next:
+ case HRS_TYPE_SWAP:
+ long_return = -1;
+ break;
+-#if defined(MBSTAT_SYMBOL)
+- case HRS_TYPE_MBUF:
+- long_return = mbstat.m_mbufs;
+- break;
+-#endif
+ #elif defined(TOTAL_MEMORY_SYMBOL) || defined(USE_SYSCTL_VM)
+ case HRS_TYPE_MEM:
+ long_return = memory_totals.t_rm;
+@@ -764,6 +759,8 @@ really_try_next:
+ case HRS_TYPE_MBUF:
+ #ifdef linux
+ long_return = linux_mem(store_idx, HRSTORE_SIZE);
++#elif defined(darwin8) && defined(MBSTAT_SYMBOL)
++ long_return = mbstat.m_mbufs;
+ #elif HAVE_SYS_POOL_H
+ long_return = 0;
+ for (i = 0;