From 5ba2c825a17cd9b7f2ef2c628b0e310d1c47a981 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Sat, 28 Mar 2026 03:48:09 +0100 Subject: xC: fix Lua 5.5 build Everything appears to work, not inspecting this in depth. --- xC.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xC.c') diff --git a/xC.c b/xC.c index f3d58ce..54b60d6 100644 --- a/xC.c +++ b/xC.c @@ -11633,7 +11633,11 @@ static struct plugin * lua_plugin_load (struct app_context *ctx, const char *filename, struct error **e) { +#if LUA_VERSION_NUM >= 505 + lua_State *L = lua_newstate (lua_plugin_alloc, NULL, 0); +#else lua_State *L = lua_newstate (lua_plugin_alloc, NULL); +#endif if (!L) { error_set (e, "Lua initialization failed"); -- cgit v1.3