X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftape.c;h=ccf88255c0110e7a1d47e10febc28b0fb05d0e65;hb=c4439c9cb3e2348ad7013644731de27a55eca478;hp=debb1d28a52beb12b43f1940c7a49569d9e2f7b7;hpb=196f5bd17880d91ba0da33a8f5f6168d039cfa0c;p=collectd.git diff --git a/src/tape.c b/src/tape.c index debb1d28..ccf88255 100644 --- a/src/tape.c +++ b/src/tape.c @@ -22,17 +22,21 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" #if !HAVE_LIBKSTAT #error "No applicable input method." #endif +#if HAVE_KSTAT_H +#include +#endif + #define MAX_NUMTAPE 256 extern kstat_ctl_t *kc; static kstat_t *ksp[MAX_NUMTAPE]; -static int numtape = 0; +static int numtape; static int tape_init(void) { kstat_t *ksp_chain;