about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2014-02-16 17:48:51 +0000
committerJames Booth <boothj5@gmail.com>2014-02-16 17:48:51 +0000
commite1fe7783c0d0132a5a4bb0e1e214aff60bafe7d1 (patch)
treea634c978ba9ef5a8e97a6bfa08a6e7a93e1c34c1
parent60e03094c3fd066283468fe094625bbd5a9a27ff (diff)
downloadprofani-tty-e1fe7783c0d0132a5a4bb0e1e214aff60bafe7d1.tar.gz
Added conditional include in cmd_otr tests
-rw-r--r--tests/test_cmd_otr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_cmd_otr.c b/tests/test_cmd_otr.c
index 8bc25fcd..92ff5e6e 100644
--- a/tests/test_cmd_otr.c
+++ b/tests/test_cmd_otr.c
@@ -5,9 +5,13 @@
 #include <stdlib.h>
 #include <string.h>
 #include <glib.h>
-#include <libotr/proto.h>
 
 #include "config.h"
+
+#ifdef HAVE_LIBOTR
+#include <libotr/proto.h>
+#endif
+
 #include "config/preferences.h"
 
 #include "ui/mock_ui.h"