xC: fix Lua 5.5 build
Everything appears to work, not inspecting this in depth.
This commit is contained in:
+2
-1
@@ -94,7 +94,8 @@ include_directories (${libffi_INCLUDE_DIRS})
|
||||
link_directories (${libffi_LIBRARY_DIRS})
|
||||
|
||||
# XXX: other Lua versions may be acceptable, don't know yet
|
||||
pkg_search_module (lua lua53 lua5.3 lua-5.3 lua54 lua5.4 lua-5.4 lua>=5.3)
|
||||
pkg_search_module (lua
|
||||
lua53 lua5.3 lua-5.3 lua54 lua5.4 lua-5.4 lua55 lua5.5 lua-5.5 lua>=5.3)
|
||||
option (WITH_LUA "Enable support for Lua plugins" ${lua_FOUND})
|
||||
|
||||
if (WITH_LUA)
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
Unreleased
|
||||
|
||||
* xC: added support for Lua 5.5
|
||||
|
||||
|
||||
2.2.0 (2026-01-10) "Just Doing the Needful"
|
||||
|
||||
* xC: added more characters as nickname delimiters,
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user