summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a96ba1d)
raw | patch | inline | side by side (parent: a96ba1d)
author | Dagobert Michelsen <dam@opencsw.org> | |
Mon, 13 Jul 2015 10:12:07 +0000 (12:12 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 2 May 2016 19:56:35 +0000 (21:56 +0200) |
src/Makefile.am | patch | blob | history | |
src/utils_mount_test.c | patch | blob | history | |
src/utils_vl_lookup.c | patch | blob | history |
diff --git a/src/Makefile.am b/src/Makefile.am
index 18b7d165d2fb1d183a65575ca950153c1aea2e76..e24d85b9c88c2e27ca30cca583fbc4b054e13955 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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
diff --git a/src/utils_mount_test.c b/src/utils_mount_test.c
index c5ffbfbcf9fb9d701db96f02aafa1cc9873b4790..a16b262c268b254581c22383d907dc6392bdf379 100644 (file)
--- a/src/utils_mount_test.c
+++ b/src/utils_mount_test.c
#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";
diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c
index f0f0b4632ecafda01572e7d3252e25fc77c5136d..f85910e1737e7b5d1c328a6e9e15896be2d60d99 100644 (file)
--- a/src/utils_vl_lookup.c
+++ b/src/utils_vl_lookup.c
#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 { \