Code

Added safe-guard for kstat libraries
[collectd.git] / src / nfs.c
index 17a09b6c6f849e26de4c11d9e6da78a51873e96d..9293ed536034345f0b480bdf9f958c100abc1b52 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