X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Ftape.c;h=26bd969ac83c1c03b8060df1ed6cb7fa86009d3d;hp=debb1d28a52beb12b43f1940c7a49569d9e2f7b7;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=1159cb5d383c55a80a0db100b8f7aadcf44740a5 diff --git a/src/tape.c b/src/tape.c index debb1d28..26bd969a 100644 --- a/src/tape.c +++ b/src/tape.c @@ -29,10 +29,14 @@ #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;