From e10ea1be4e21f78bc308b74390249d194645ba8e Mon Sep 17 00:00:00 2001 From: James Booth Date: Mon, 19 May 2014 20:41:19 +0100 Subject: Fixed OTR dependency when library not present, changed version to 0.4.2 --- tests/otr/mock_otr.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/otr') diff --git a/tests/otr/mock_otr.c b/tests/otr/mock_otr.c index 0cda802e..8a063b99 100644 --- a/tests/otr/mock_otr.c +++ b/tests/otr/mock_otr.c @@ -6,9 +6,12 @@ #include #include +#ifdef HAVE_LIBOTR #include "otr/otr.h" +#endif #include "config/account.h" +#ifdef HAVE_LIBOTR static void _mock_otr_keygen(ProfAccount *account) { @@ -88,3 +91,4 @@ otr_start_query_returns(char *query) otr_start_query = _mock_otr_start_query; will_return(_mock_otr_start_query, query); } +#endif -- cgit 1.4.1-2-gfad0