From 5092e45e3fbfd614743e675c216c4ab0214073bb Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 2 Apr 2016 16:02:18 +0100 Subject: tests: unbound API is only accessible in static builds --- tests/unit_tests/unbound.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/unit_tests') diff --git a/tests/unit_tests/unbound.cpp b/tests/unit_tests/unbound.cpp index 25026ec58..666f68127 100644 --- a/tests/unit_tests/unbound.cpp +++ b/tests/unit_tests/unbound.cpp @@ -30,6 +30,8 @@ #include "gtest/gtest.h" +#ifdef STATICLIB + extern "C" int dnskey_algo_id_is_supported(int); TEST(unbound, supported_algorithms) @@ -47,3 +49,5 @@ TEST(unbound, supported_algorithms) ASSERT_TRUE(dnskey_algo_id_is_supported(13)); } +#endif + -- cgit v1.2.3