From 004b8c981bdf113eac97020e1ded93f9138eceae Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Thu, 9 Apr 2026 15:28:28 +0200 Subject: lpg: fix Lua 5.5 build --- lpg/lpg.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lpg/lpg.cpp b/lpg/lpg.cpp index 341a104..adc5be3 100644 --- a/lpg/lpg.cpp +++ b/lpg/lpg.cpp @@ -1106,7 +1106,11 @@ int main(int argc, char *argv[]) { return 1; } - lua_State *L = lua_newstate(xlua_alloc, NULL); +#if LUA_VERSION_NUM >= 505 + lua_State *L = lua_newstate (xlua_alloc, NULL, 0); +#else + lua_State *L = lua_newstate (xlua_alloc, NULL); +#endif if (!L) { cerr << "fatal: Lua initialization failed" << endl; return 1; -- cgit v1.3