lpg: fix Lua 5.5 build
All checks were successful
Alpine 3.23 Success
Arch Linux AUR Success

This commit is contained in:
2026-04-09 15:28:28 +02:00
parent f4b08fb951
commit 004b8c981b

View File

@@ -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;