X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Ftape.c;h=26bd969ac83c1c03b8060df1ed6cb7fa86009d3d;hp=debb1d28a52beb12b43f1940c7a49569d9e2f7b7;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=3d082a905619c19ca5b7183bb95a30d4d9529c4d 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;