httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jkal...@apache.org
Subject svn commit: r1668831 - /httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c
Date Tue, 24 Mar 2015 09:46:42 GMT
Author: jkaluza
Date: Tue Mar 24 09:46:42 2015
New Revision: 1668831

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

Modified:
    httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c

Modified: httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c?rev=1668831&r1=1668830&r2=1668831&view=diff
==============================================================================
--- httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c (original)
+++ httpd/httpd/branches/2.4.x/modules/lua/mod_lua.c Tue Mar 24 09:46:42 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),



Mime
View raw message