diff --git a/net/net-snmp/Makefile b/net/net-snmp/Makefile index 9c69f91d7c8..7ddfaf8cb3b 100644 --- a/net/net-snmp/Makefile +++ b/net/net-snmp/Makefile @@ -1,10 +1,10 @@ -# $OpenBSD: Makefile,v 1.24 2007/09/26 20:03:42 rui Exp $ +# $OpenBSD: Makefile,v 1.25 2008/02/28 18:26:28 okan Exp $ COMMENT-main= extendable SNMP implementation COMMENT-perl= SNMP modules for Perl DISTNAME= net-snmp-5.4.1 -PKGNAME-main= ${DISTNAME} +PKGNAME-main= ${DISTNAME}p0 PKGNAME-perl= p5-SNMP-5.4.1 SHARED_LIBS= netsnmp 7.0 \ netsnmpagent 7.0 \ diff --git a/net/net-snmp/patches/patch-agent_mibgroup_hardware_memory_memory_netbsd_c b/net/net-snmp/patches/patch-agent_mibgroup_hardware_memory_memory_netbsd_c new file mode 100644 index 00000000000..770888e63bf --- /dev/null +++ b/net/net-snmp/patches/patch-agent_mibgroup_hardware_memory_memory_netbsd_c @@ -0,0 +1,19 @@ +$OpenBSD: patch-agent_mibgroup_hardware_memory_memory_netbsd_c,v 1.1 2008/02/28 18:26:28 okan Exp $ +--- agent/mibgroup/hardware/memory/memory_netbsd.c.orig Mon Mar 6 11:23:52 2006 ++++ agent/mibgroup/hardware/memory/memory_netbsd.c Thu Feb 28 11:22:10 2008 +@@ -37,11 +37,11 @@ int netsnmp_mem_arch_load( netsnmp_cache *cache, void + size_t total_size = sizeof(total); + int total_mib[] = { CTL_VM, VM_METER }; + +- long phys_mem; +- long user_mem; ++ int64_t phys_mem; ++ int64_t user_mem; + size_t mem_size = sizeof(phys_mem); +- int phys_mem_mib[] = { CTL_HW, HW_PHYSMEM }; +- int user_mem_mib[] = { CTL_HW, HW_USERMEM }; ++ int phys_mem_mib[] = { CTL_HW, HW_PHYSMEM64 }; ++ int user_mem_mib[] = { CTL_HW, HW_USERMEM64 }; + + /* + * Retrieve the memory information from the underlying O/S...