1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00

Fix building on Debian GNU/kFreeBSD (sf.net #3525356)

This commit is contained in:
Pavel Labath 2012-06-04 16:26:33 +02:00
parent 1e5eba211d
commit dea2c56582

View File

@ -293,7 +293,7 @@ int update_running_processes(void)
std::lock_guard<std::mutex> 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) {