HW_(PHYS|USER)MEM64 fix
ok naddy@
This commit is contained in:
parent
5ab62febe9
commit
dd181a31e6
@ -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 \
|
||||
|
@ -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...
|
Loading…
Reference in New Issue
Block a user