You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jk...@apache.org on 2015/03/24 10:13:13 UTC

svn commit: r1668827 - /httpd/httpd/trunk/modules/lua/mod_lua.c

Author: jkaluza
Date: Tue Mar 24 09:13:12 2015
New Revision: 1668827

URL: http://svn.apache.org/r1668827
Log:
* mod_lua: fix compilation with lua-5.3

Modified:
    httpd/httpd/trunk/modules/lua/mod_lua.c

Modified: httpd/httpd/trunk/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/mod_lua.c?rev=1668827&r1=1668826&r2=1668827&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/mod_lua.c (original)
+++ httpd/httpd/trunk/modules/lua/mod_lua.c Tue Mar 24 09:13:12 2015
@@ -1072,7 +1072,11 @@ static const char *register_named_block_
         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),