]> granicus.if.org Git - apache/commitdiff
* mod_lua: fix compilation with lua-5.3 (r1668827)
authorJan Kaluža <jkaluza@apache.org>
Tue, 24 Mar 2015 09:46:42 +0000 (09:46 +0000)
committerJan Kaluža <jkaluza@apache.org>
Tue, 24 Mar 2015 09:46:42 +0000 (09:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1668831 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/mod_lua.c

index e6d2cfcc343c9a66220ba48e35ab40448ef539fb..2c69551cd57885eb06832ae232613d0555f2d7bd 100644 (file)
@@ -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),