]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Include kstat.h when available 2716/head
authorDagobert Michelsen <dam@opencsw.org>
Wed, 21 Mar 2018 20:22:45 +0000 (21:22 +0100)
committerDagobert Michelsen <dam@opencsw.org>
Wed, 21 Mar 2018 20:22:45 +0000 (21:22 +0100)
src/daemon/common.h

index cf4c5a71b9ac484a52be4cb2b6975434afd6922e..e36436261de74318f05ab965a59452946dccf04b 100644 (file)
@@ -289,6 +289,9 @@ int timeval_cmp(struct timeval tv0, struct timeval tv1, struct timeval *delta);
 int check_create_dir(const char *file_orig);
 
 #ifdef HAVE_LIBKSTAT
+#if HAVE_KSTAT_H
+#include <kstat.h>
+#endif
 int get_kstat(kstat_t **ksp_ptr, char *module, int instance, char *name);
 long long get_kstat_value(kstat_t *ksp, char *name);
 #endif