Merge pull request #2716 from dago/kstat
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 31 Mar 2018 10:18:39 +0000 (12:18 +0200)
committerGitHub <noreply@github.com>
Sat, 31 Mar 2018 10:18:39 +0000 (12:18 +0200)
Include kstat.h when available

src/daemon/common.h

index cf4c5a7..e364362 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