diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index ad6d806331..776713c912 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -109,7 +109,9 @@ EFL_START_TEST(evas_textblock_cursor)
Evas_Coord x, y, w, h;
size_t i, j, len;
Evas_Coord nw, nh;
+#ifdef HAVE_FRIBIDI
Evas_BiDi_Direction dir;
+#endif
const char *buf = "This is a
test.Lets see if this works.עוד פסקה.";
/* Walk the textblock using cursor_char_next */