From bded8bc1acf901fe15e88981fd00c1492a7fd2f2 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Wed, 21 Mar 2018 21:22:45 +0100 Subject: [PATCH] Include kstat.h when available --- src/daemon/common.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.11.0