From d35e4060677d4c6818b33da2cc09e9c7116eca2e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sat, 31 Dec 2005 18:46:55 +0000 Subject: [PATCH] fix proc_list for freebsd4 --- src/os/darwin/darwin_sigar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 7e5ff709..c7f0b999 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -529,7 +529,7 @@ int sigar_loadavg_get(sigar_t *sigar, int sigar_proc_list_get(sigar_t *sigar, sigar_proc_list_t *proclist) { -#if 1 /*def DARWIN*/ /* XXX dont think this works on freebsd 4.x */ +#if defined(DARWIN) || defined(SIGAR_FREEBSD5) int mib[4] = { CTL_KERN, KERN_PROC, KERN_PROC_PROC, 0 }; int i, num; size_t len;