From: Dagobert Michelsen Date: Mon, 13 Jul 2015 10:00:10 +0000 (+0200) Subject: Add missing kstat definitions X-Git-Tag: collectd-5.5.2~20 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a96ba1d6c979b4bccbc4d2ebc8872c5dbb1d1e09;p=collectd.git Add missing kstat definitions --- diff --git a/src/Makefile.am b/src/Makefile.am index 76a885b4..18b7d165 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1378,6 +1378,9 @@ test_utils_mount_LDADD = libmount.la daemon/libplugin_mock.la test_utils_vl_lookup_SOURCES = utils_vl_lookup_test.c testing.h test_utils_vl_lookup_LDADD = liblookup.la daemon/libplugin_mock.la +if BUILD_WITH_LIBKSTAT +test_utils_vl_lookup_LDADD += -lkstat +endif TESTS = test_utils_mount test_utils_vl_lookup diff --git a/src/daemon/common_test.c b/src/daemon/common_test.c index 1fa8f324..39ea5774 100644 --- a/src/daemon/common_test.c +++ b/src/daemon/common_test.c @@ -27,6 +27,10 @@ #include "testing.h" #include "common.h" +#if HAVE_LIBKSTAT +kstat_ctl_t *kc; +#endif /* HAVE_LIBKSTAT */ + DEF_TEST(sstrncpy) { char buffer[16] = "";