X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdisk.c;h=45706bc262044855d58cbf49464ded2c1ea10366;hp=004ce9e2d7415b39254f7f39991821a6d7b45fbb;hb=a9e50e9e30ecde17e167e271060c8183bfcbf407;hpb=072244d2e10336241610a1a0448a8149e9c77e7e diff --git a/src/disk.c b/src/disk.c index 004ce9e2..45706bc2 100644 --- a/src/disk.c +++ b/src/disk.c @@ -120,6 +120,9 @@ static struct gmesh geom_tree; /* #endif KERNEL_FREEBSD */ #elif HAVE_LIBKSTAT +#if HAVE_KSTAT_H +#include +#endif #define MAX_NUMDISK 1024 extern kstat_ctl_t *kc; static kstat_t *ksp[MAX_NUMDISK];