From a96ba1d6c979b4bccbc4d2ebc8872c5dbb1d1e09 Mon Sep 17 00:00:00 2001 From: Dagobert Michelsen Date: Mon, 13 Jul 2015 12:00:10 +0200 Subject: [PATCH] Add missing kstat definitions --- src/Makefile.am | 3 +++ src/daemon/common_test.c | 4 ++++ 2 files changed, 7 insertions(+) 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] = ""; -- 2.11.0