X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=45706bc262044855d58cbf49464ded2c1ea10366;hb=b755def9cec867d955ad91a3864e2dbca9a16bf1;hp=004ce9e2d7415b39254f7f39991821a6d7b45fbb;hpb=084761bb8a360ac0f9e21ad43c82312676cc4a37;p=collectd.git 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];