X-Git-Url: https://git.octo.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fdaemon%2Fcommon.h;h=aae190916227a398d7ca338fce3ca3a5d569f873;hb=7111bb6df7628edce3a8e538b386fbe27633a191;hp=7f8605215b7f5de425721bba2e8a482b352ee5ce;hpb=c84ce4c2d974d891712f0287932f57ed7e6be98d;p=collectd.git diff --git a/src/daemon/common.h b/src/daemon/common.h index 7f860521..aae19091 100644 --- a/src/daemon/common.h +++ b/src/daemon/common.h @@ -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 +#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