X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fcpu.c;h=8480f11a624e3e83298066567f308d172f3ef0cf;hp=0bf38e7f661ba548ae3a4c5dd7e6419f53972e10;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=ac6580fd886d45a66506fe710a6fea0f48368dcb diff --git a/src/cpu.c b/src/cpu.c index 0bf38e7f..8480f11a 100644 --- a/src/cpu.c +++ b/src/cpu.c @@ -134,6 +134,9 @@ static mach_msg_type_number_t cpu_list_len; /* #endif KERNEL_LINUX */ #elif defined(HAVE_LIBKSTAT) +#if HAVE_KSTAT_H +#include +#endif /* colleague tells me that Sun doesn't sell systems with more than 100 or so * CPUs.. */ #define MAX_NUMCPU 256