From 7de24a09e36d70ef62156fd6eef67c2a03ffffab Mon Sep 17 00:00:00 2001 From: Olliver Schinagl Date: Fri, 10 May 2024 13:27:55 +0200 Subject: [PATCH] FTL_lua: Properly guard readline Readline support should only be used when we know it is available. Lets properly use a ifdef guard like we do in `shell.c`. Signed-off-by: Olliver Schinagl --- src/lua/ftl_lua.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua/ftl_lua.c b/src/lua/ftl_lua.c index 5f448406..0948ed06 100644 --- a/src/lua/ftl_lua.c +++ b/src/lua/ftl_lua.c @@ -20,7 +20,9 @@ #include "../files.h" // get_web_theme_str #include "../datastructure.h" +#if HAVE_READLINE #include +#endif #include #include "scripts/scripts.h"