1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

Fix build failures on Debian kfreebsd (#291)

This commit is contained in:
Vincent Cheng 2016-07-13 07:24:29 -07:00 committed by Brenden Matthews
parent 4055b347f9
commit 48ea5914e9
2 changed files with 2 additions and 4 deletions

View File

@ -54,7 +54,7 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
set(OS_FREEBSD true)
set(conky_libs ${conky_libs} -lkvm -ldevstat)
set(conky_libs ${conky_libs} -lkvm -ldevstat -lbsd)
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
if(CMAKE_SYSTEM_NAME MATCHES "DragonFly")

View File

@ -725,9 +725,7 @@ void get_top_info(void)
for (i = 0; i < n_processes; i++) {
if (!((p[i].ki_flag & P_SYSTEM)) && p[i].ki_comm != NULL) {
proc = find_process(p[i].ki_pid);
if (!proc)
proc = new_process(p[i].ki_pid);
proc = get_process(p[i].ki_pid);
proc->time_stamp = g_time;
proc->name = strndup(p[i].ki_comm, text_buffer_size.get(*state));