Skip to content

Commit

Permalink
Fix build failures on Debian kfreebsd (#291)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent-C authored and brndnmtthws committed Jul 13, 2016
1 parent 4055b34 commit 48ea591
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmake/ConkyPlatformChecks.cmake
Expand Up @@ -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")
Expand Down
4 changes: 1 addition & 3 deletions src/freebsd.cc
Expand Up @@ -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));
Expand Down

0 comments on commit 48ea591

Please sign in to comment.