From 4fb43017b4b585256627b9503ce0a5cf08ecdefe Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 14 Jul 2015 08:22:18 +0200 Subject: [PATCH] plugin_mock.c: Declare "kc". This hopefully fixes "make check" on Solaris, which currently fails with: CC common_test.o CCLD test_common Undefined first referenced symbol in file kc ./.libs/libcommon.a(common.o) ld: fatal: symbol referencing errors. No output written to test_common collect2: error: ld returned 1 exit status --- src/daemon/plugin_mock.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/daemon/plugin_mock.c b/src/daemon/plugin_mock.c index 86528809..f7bf1c01 100644 --- a/src/daemon/plugin_mock.c +++ b/src/daemon/plugin_mock.c @@ -26,6 +26,10 @@ #include "plugin.h" +#if HAVE_LIBKSTAT +kstat_ctl_t *kc = NULL; +#endif /* HAVE_LIBKSTAT */ + void plugin_log (int level, char const *format, ...) { char buffer[1024]; -- 2.30.2