From: Ruben Kerkhof Date: Sat, 31 Mar 2018 10:18:39 +0000 (+0200) Subject: Merge pull request #2716 from dago/kstat X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=182556dd5a43942797591f0f49ac6f488c07010d;hp=d929cb64e9f243a080402769bf5e4626c9b5e9d3;p=collectd.git Merge pull request #2716 from dago/kstat Include kstat.h when available --- diff --git a/src/daemon/common.h b/src/daemon/common.h index cf4c5a71..e3643626 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -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 +#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