]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Include kstat.h when available 2793/head
authorDagobert Michelsen <dam@opencsw.org>
Wed, 21 Mar 2018 20:22:45 +0000 (21:22 +0100)
committerPavel Rochnyack <pavel2000@ngs.ru>
Wed, 23 May 2018 09:54:52 +0000 (16:54 +0700)
src/daemon/common.h

index 7f8605215b7f5de425721bba2e8a482b352ee5ce..aae190916227a398d7ca338fce3ca3a5d569f873 100644 (file)
@@ -282,6 +282,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