More missing kstat usages
authorDagobert Michelsen <dam@opencsw.org>
Mon, 13 Jul 2015 10:12:07 +0000 (12:12 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 2 May 2016 19:56:35 +0000 (21:56 +0200)
src/Makefile.am
src/utils_mount_test.c
src/utils_vl_lookup.c

index 18b7d16..e24d85b 100644 (file)
@@ -1375,6 +1375,9 @@ check_PROGRAMS = test_utils_mount test_utils_vl_lookup
 
 test_utils_mount_SOURCES = utils_mount_test.c testing.h
 test_utils_mount_LDADD = libmount.la daemon/libplugin_mock.la
+if BUILD_WITH_LIBKSTAT
+test_utils_mount_LDADD += -lkstat
+endif
 
 test_utils_vl_lookup_SOURCES = utils_vl_lookup_test.c testing.h
 test_utils_vl_lookup_LDADD = liblookup.la daemon/libplugin_mock.la
index c5ffbfb..a16b262 100644 (file)
 #include "collectd.h"
 #include "utils_mount.h"
 
+#if HAVE_LIBKSTAT
+kstat_ctl_t *kc;
+#endif /* HAVE_LIBKSTAT */
+
 DEF_TEST(cu_mount_checkoption)
 {
   char line_opts[] = "foo=one,bar=two,qux=three";
index f0f0b46..f85910e 100644 (file)
 #include "utils_vl_lookup.h"
 #include "utils_avltree.h"
 
+#if HAVE_LIBKSTAT
+kstat_ctl_t *kc;
+#endif /* HAVE_LIBKSTAT */
+
 #if BUILD_TEST
 # define sstrncpy strncpy
 # define plugin_log(s, ...) do { \