about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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"