diff --git a/src/conky.cc b/src/conky.cc index 6a782e87..ebffb071 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -157,6 +157,10 @@ void *global_cpu = NULL; unsigned int max_text_width = 0; int ifup_strictness = IFUP_UP; +#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +extern kvm_t *kd; +#endif + int argc_copy; char** argv_copy; diff --git a/src/freebsd.cc b/src/freebsd.cc index 40956083..e53ec7b4 100644 --- a/src/freebsd.cc +++ b/src/freebsd.cc @@ -67,6 +67,8 @@ #define FREEBSD_DEBUG #endif +kvm_t *kd; + __attribute__((gnu_inline)) inline void proc_find_top(struct process **cpu, struct process **mem); diff --git a/src/freebsd.h b/src/freebsd.h index c7ce372c..833e9e35 100644 --- a/src/freebsd.h +++ b/src/freebsd.h @@ -17,8 +17,6 @@ extern "C" { #endif -kvm_t *kd; - int get_entropy_avail(unsigned int *); int get_entropy_poolsize(unsigned int *);