]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
Added missing include of 'kstat.h' 2784/head
authorPavel Rochnyack <pavel2000@ngs.ru>
Sun, 20 May 2018 16:48:00 +0000 (23:48 +0700)
committerPavel Rochnyack <pavel2000@ngs.ru>
Sun, 20 May 2018 16:48:00 +0000 (23:48 +0700)
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;

src/daemon/common.c

index cf981dc0a3d8b03b0022bf997f430115e7d4cc47..d5322ed8dbb855495cf185ad4903c0ac3d398fe6 100644 (file)
 #include <sys/capability.h>
 #endif
 
+#if HAVE_KSTAT_H
+#include <kstat.h>
+#endif
+
 #ifdef HAVE_LIBKSTAT
 extern kstat_ctl_t *kc;
 #endif