Added safe-guard for kstat libraries
authorCosmin Ioiart <cioiart+dev@gmail.com>
Thu, 23 Feb 2012 14:34:32 +0000 (15:34 +0100)
committerFlorian Forster <octo@collectd.org>
Sun, 18 Mar 2012 09:30:20 +0000 (10:30 +0100)
src/nfs.c

index 17a09b6..9293ed5 100644 (file)
--- a/src/nfs.c
+++ b/src/nfs.c
@@ -24,9 +24,9 @@
 #include "common.h"
 #include "plugin.h"
 
+#if HAVE_KSTAT_H
 #include <kstat.h>
-#include <stdio.h>
-#include <stdint.h>
+#endif
 
 /*
 see /proc/net/rpc/nfs