From eca303e31887cbd8a27a9b901da5aa02aa32a4bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kalu=C5=BEa?= Date: Tue, 24 Mar 2015 09:13:12 +0000 Subject: [PATCH] * mod_lua: fix compilation with lua-5.3 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1668827 13f79535-47bb-0310-9956-ffa450edef68 --- modules/lua/mod_lua.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lua/mod_lua.c b/modules/lua/mod_lua.c index c4180ef2f3..142dc5c15f 100644 --- a/modules/lua/mod_lua.c +++ b/modules/lua/mod_lua.c @@ -1072,7 +1072,11 @@ static const char *register_named_block_function_hook(const char *name, 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), -- 2.40.0