Add missing kstat definitions
authorDagobert Michelsen <dam@opencsw.org>
Mon, 13 Jul 2015 10:00:10 +0000 (12:00 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Mon, 2 May 2016 19:14:24 +0000 (21:14 +0200)
src/Makefile.am
src/daemon/common_test.c

index 76a885b..18b7d16 100644 (file)
@@ -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
 
index 1fa8f32..39ea577 100644 (file)
 #include "testing.h"
 #include "common.h"
 
+#if HAVE_LIBKSTAT
+kstat_ctl_t *kc;
+#endif /* HAVE_LIBKSTAT */
+
 DEF_TEST(sstrncpy)
 {
   char buffer[16] = "";