about summary refs log tree commit diff stats
path: root/tests/otr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/otr')
-rw-r--r--tests/otr/mock_otr.c4
1 files changed, 4 insertions, 0 deletions
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 <string.h>
 #include <glib.h>
 
+#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