diff --git a/src/freebsd.cc b/src/freebsd.cc index db0b383a..3b13636f 100644 --- a/src/freebsd.cc +++ b/src/freebsd.cc @@ -293,7 +293,7 @@ int update_running_processes(void) std::lock_guard guard(kvm_proc_mutex); p = kvm_getprocs(kd, KERN_PROC_ALL, 0, &n_processes); for (i = 0; i < n_processes; i++) { -#if (__FreeBSD__ < 5) && (__FreeBSD_kernel__ < 5) +#if (__FreeBSD__ < 5) && !defined(__FreeBSD_kernel__) if (p[i].kp_proc.p_stat == SRUN) { #else if (p[i].ki_stat == SRUN) {