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:
parent
4055b347f9
commit
48ea5914e9
@ -54,7 +54,7 @@ endif(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
set(OS_FREEBSD true)
|
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")
|
endif(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME MATCHES "DragonFly")
|
if(CMAKE_SYSTEM_NAME MATCHES "DragonFly")
|
||||||
|
@ -725,9 +725,7 @@ void get_top_info(void)
|
|||||||
|
|
||||||
for (i = 0; i < n_processes; i++) {
|
for (i = 0; i < n_processes; i++) {
|
||||||
if (!((p[i].ki_flag & P_SYSTEM)) && p[i].ki_comm != NULL) {
|
if (!((p[i].ki_flag & P_SYSTEM)) && p[i].ki_comm != NULL) {
|
||||||
proc = find_process(p[i].ki_pid);
|
proc = get_process(p[i].ki_pid);
|
||||||
if (!proc)
|
|
||||||
proc = new_process(p[i].ki_pid);
|
|
||||||
|
|
||||||
proc->time_stamp = g_time;
|
proc->time_stamp = g_time;
|
||||||
proc->name = strndup(p[i].ki_comm, text_buffer_size.get(*state));
|
proc->name = strndup(p[i].ki_comm, text_buffer_size.get(*state));
|
||||||
|
Loading…
Reference in New Issue
Block a user