about summary refs log tree commit diff stats
path: root/tests/unittests/ui
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-31 23:24:47 +0000
committerJames Booth <boothj5@gmail.com>2015-10-31 23:24:47 +0000
commit8a7e2c19f9939fb738a89de23998d59a6a7bc5cf (patch)
tree2b8b4a8918f3df04c09fb0a97ae1caea309f84fb /tests/unittests/ui
parent24896a3bfbdd21e71e7ff5476a33bb87ebf114dd (diff)
downloadprofani-tty-8a7e2c19f9939fb738a89de23998d59a6a7bc5cf.tar.gz
Fixed tests
Diffstat (limited to 'tests/unittests/ui')
-rw-r--r--tests/unittests/ui/stub_ui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/ui/stub_ui.c b/tests/unittests/ui/stub_ui.c
index 5e0ac484..e232fab0 100644
--- a/tests/unittests/ui/stub_ui.c
+++ b/tests/unittests/ui/stub_ui.c
@@ -66,11 +66,13 @@ GSList* ui_get_chat_recipients(void)
 
 void ui_switch_win(ProfWin *win) {}
 
+#ifdef HAVE_LIBOTR
 void chatwin_otr_secured(ProfChatWin *chatwin, gboolean trusted) {}
 void chatwin_otr_unsecured(ProfChatWin *chatwin) {}
 void chatwin_otr_trust(ProfChatWin *chatwin) {}
 void chatwin_otr_untrust(ProfChatWin *chatwin) {}
 void chatwin_otr_smp_event(ProfChatWin *chatwin, prof_otr_smp_event_t event, void *data) {}
+#endif
 
 void ui_sigwinch_handler(int sig) {}