Add missing Lua patch

This commit is contained in:
Jan Kaluza 2015-03-27 09:39:47 +01:00
parent 16a9524e26
commit fbd66cc14a

16
httpd-2.4.10-lua53.patch Normal file
View File

@ -0,0 +1,16 @@
Index: modules/lua/mod_lua.c
===================================================================
--- modules/lua/mod_lua.c (revision 1668826)
+++ modules/lua/mod_lua.c (working copy)
@@ -1072,7 +1072,11 @@
else {
luaL_Buffer b;
luaL_buffinit(lvm, &b);
+#if LUA_VERSION_NUM >= 503
+ lua_dump(lvm, ldump_writer, &b, 0);
+#else
lua_dump(lvm, ldump_writer, &b);
+#endif
luaL_pushresult(&b);
spec->bytecode_len = lua_strlen(lvm, -1);
spec->bytecode = apr_pstrmemdup(cmd->pool, lua_tostring(lvm, -1),