use sysctl proc_list on NetBSD

This commit is contained in:
Doug MacEachern 2008-03-10 03:01:40 +00:00
parent e406af0b70
commit 3d33130db8
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ static int proc_fdinfo_get(sigar_t *sigar, sigar_pid_t pid, int *num)
int sigar_os_proc_list_get(sigar_t *sigar,
sigar_proc_list_t *proclist)
{
#if defined(DARWIN) || defined(SIGAR_FREEBSD5) || defined(__OpenBSD__)
#if defined(DARWIN) || defined(SIGAR_FREEBSD5) || defined(__OpenBSD__) || defined(__NetBSD__)
int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PROC, 0 };
int i, num;
size_t len;