Compile on fbsd.

This commit is contained in:
Roy Marples 2007-10-01 08:42:27 +00:00
parent 1a6912d7eb
commit 52f33e2815

View File

@ -181,8 +181,10 @@ pid_t *rc_find_pids (const char *exec, const char *cmd,
pid_t *tmp;
int npids = 0;
if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL)
eerrorx ("kvm_open: %s", errbuf);
if ((kd = kvm_openfiles (NULL, NULL, NULL, O_RDONLY, errbuf)) == NULL) {
fprintf (stderr, "kvm_open: %s", errbuf);
return (NULL);
}
#if defined(__DragonFly__) || defined( __FreeBSD__)
kp = kvm_getprocs (kd, KERN_PROC_PROC, 0, &processes);