about summary refs log tree commit diff stats
path: root/tests/otr
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-05-19 20:41:19 +0100
committerJames Booth <boothj5@gmail.com>2014-05-19 20:41:19 +0100
commite10ea1be4e21f78bc308b74390249d194645ba8e (patch)
treeeb77222fdb6b25e3c393b7cf56540a3cca05601f /tests/otr
parent3fb5649ccc1617254e6dedc63750293f7d5b9b1a (diff)
downloadprofani-tty-e10ea1be4e21f78bc308b74390249d194645ba8e.tar.gz
Fixed OTR dependency when library not present, changed version to 0.4.2
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