summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f148254)
raw | patch | inline | side by side (parent: f148254)
author | Dagobert Michelsen <dam@opencsw.org> | |
Mon, 13 Jul 2015 10:00:10 +0000 (12:00 +0200) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Mon, 2 May 2016 19:14:24 +0000 (21:14 +0200) |
src/Makefile.am | patch | blob | history | |
src/daemon/common_test.c | patch | blob | history |
diff --git a/src/Makefile.am b/src/Makefile.am
index 76a885b417c295d268d3f717a7c57553c681a503..18b7d165d2fb1d183a65575ca950153c1aea2e76 100644 (file)
--- a/src/Makefile.am
+++ b/src/Makefile.am
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 1fa8f324461293c201b30440a8bb3e857062a993..39ea5774d6ab68ef0623bd2c6dfacd2104d877e0 100644 (file)
--- a/src/daemon/common_test.c
+++ b/src/daemon/common_test.c
#include "testing.h"
#include "common.h"
+#if HAVE_LIBKSTAT
+kstat_ctl_t *kc;
+#endif /* HAVE_LIBKSTAT */
+
DEF_TEST(sstrncpy)
{
char buffer[16] = "";