Compile on fbsd.
This commit is contained in:
parent
1a6912d7eb
commit
52f33e2815
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user