X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Fcollectd.c;h=7dba657dd4f00026f4d9cc0d7c00976814051dd0;hb=443be7f787ad39a38ea15eed5babe24c03e5f0b6;hp=9ec09347267f474c846d4807ceb065f9800ce493;hpb=8d39c32427225cea2ec2f2d18ae72984100ad432;p=collectd.git diff --git a/src/daemon/collectd.c b/src/daemon/collectd.c index 9ec09347..7dba657d 100644 --- a/src/daemon/collectd.c +++ b/src/daemon/collectd.c @@ -43,6 +43,10 @@ #include #endif +#if HAVE_KSTAT_H +#include +#endif + #ifndef COLLECTD_LOCALE #define COLLECTD_LOCALE "C" #endif @@ -208,6 +212,7 @@ static int change_basedir(const char *orig_dir, _Bool create) { } /* static int change_basedir (char *dir) */ #if HAVE_LIBKSTAT +extern kstat_ctl_t *kc; static void update_kstat(void) { if (kc == NULL) { if ((kc = kstat_open()) == NULL)