fix NetBSD proc_mem

This commit is contained in:
Doug MacEachern 2008-03-10 02:22:22 +00:00
parent e48a2b0ee0
commit 02280ec3c1
1 changed files with 1 additions and 1 deletions

View File

@ -959,7 +959,7 @@ int sigar_proc_mem_get(sigar_t *sigar, sigar_pid_t pid,
procmem->page_faults = SIGAR_FIELD_NOTIMPL; procmem->page_faults = SIGAR_FIELD_NOTIMPL;
procmem->minor_faults = SIGAR_FIELD_NOTIMPL; procmem->minor_faults = SIGAR_FIELD_NOTIMPL;
procmem->major_faults = SIGAR_FIELD_NOTIMPL; procmem->major_faults = SIGAR_FIELD_NOTIMPL;
#elif defined(__OpenBSD__) #elif defined(__OpenBSD__) || defined(__NetBSD__)
int status = sigar_get_pinfo(sigar, pid); int status = sigar_get_pinfo(sigar, pid);
bsd_pinfo_t *pinfo = sigar->pinfo; bsd_pinfo_t *pinfo = sigar->pinfo;