From: Pavel Rochnyack Date: Sun, 20 May 2018 16:48:00 +0000 (+0700) Subject: Added missing include of 'kstat.h' X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d927ce451022415b65caa911c69d1e98c4096e8c;p=collectd.git Added missing include of 'kstat.h' This adressed to solve compilation issue on Solaris platform: src/daemon/common.c:64:8: error: unknown type name 'kstat_ctl_t' extern kstat_ctl_t *kc; --- diff --git a/src/daemon/common.c b/src/daemon/common.c index cf981dc0..d5322ed8 100644 --- a/src/daemon/common.c +++ b/src/daemon/common.c @@ -60,6 +60,10 @@ #include #endif +#if HAVE_KSTAT_H +#include +#endif + #ifdef HAVE_LIBKSTAT extern kstat_ctl_t *kc; #endif