port proc_fd to freebsd4

This commit is contained in:
Doug MacEachern 2006-01-02 22:18:33 +00:00
parent e56e760d58
commit 8e153ef62f
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}