Added missing include of 'kstat.h'
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 cf981dc..d5322ed 100644 (file)
 #include <sys/capability.h>
 #endif
 
 #include <sys/capability.h>
 #endif
 
+#if HAVE_KSTAT_H
+#include <kstat.h>
+#endif
+
 #ifdef HAVE_LIBKSTAT
 extern kstat_ctl_t *kc;
 #endif
 #ifdef HAVE_LIBKSTAT
 extern kstat_ctl_t *kc;
 #endif