From 8e153ef62f30e70d35275af2dc4e1f0078806cee Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Mon, 2 Jan 2006 22:18:33 +0000 Subject: [PATCH] port proc_fd to freebsd4 --- src/os/darwin/darwin_sigar.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 0b582694..054df62c 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -1204,7 +1204,7 @@ int sigar_proc_env_get(sigar_t *sigar, sigar_pid_t pid, int sigar_proc_fd_get(sigar_t *sigar, sigar_pid_t pid, sigar_proc_fd_t *procfd) { -#if defined(SIGAR_FREEBSD5) +#ifndef DARWIN int status; struct kinfo_proc *pinfo; struct filedesc filed; @@ -1222,7 +1222,7 @@ int sigar_proc_fd_get(sigar_t *sigar, sigar_pid_t pid, } pinfo = sigar->pinfo; - status = kread(sigar, &filed, sizeof(filed), (u_long)pinfo->ki_fd); + status = kread(sigar, &filed, sizeof(filed), (u_long)pinfo->KI_FD); if (status != SIGAR_OK) { return status; }