]> granicus.if.org Git - apache/commitdiff
Enable to build mod_lua against Lua 5.3.
authorGuenter Knauf <fuankg@apache.org>
Mon, 19 Jan 2015 00:35:25 +0000 (00:35 +0000)
committerGuenter Knauf <fuankg@apache.org>
Mon, 19 Jan 2015 00:35:25 +0000 (00:35 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1652886 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/NWGNUmakefile
modules/lua/mod_lua.h

index fd86b3c9ee6de33b2cf50999e1b4a1816f8aa63b..24f2703f58ea79da22781800bdb17f564b9f7126 100644 (file)
@@ -46,6 +46,9 @@ XCFLAGS               += \
 #
 XDEFINES       += \
                        -DLUA_COMPAT_ALL \
+                       -DLUA_COMPAT_5_2 \
+                       -DLUA_COMPAT_5_1 \
+                       -DLUA_COMPAT_MODULE \
                        $(EOLIST)
 
 #
index d3cf2e9c7c96c554db6d4f985e599795ebf8555f..636d35c5cb32c056cc3c4b5fe5a141637b1102ea 100644 (file)
 
 /* Allow for Lua 5.2 backwards compatibility */
 #define LUA_COMPAT_ALL
+/* Allow for Lua 5.3 backwards compatibility */
+#define LUA_COMPAT_5_2
+#define LUA_COMPAT_5_1
+#define LUA_COMPAT_MODULE
 
 #include "lua.h"
 #include "lauxlib.h"
 #else
 #define lua_rawlen(L,i)   lua_objlen(L, (i))
 #endif
+#if LUA_VERSION_NUM > 502
+/* Load mode for lua_dump() */
+#define lua_dump(a,b,c)   lua_dump(a,b,c,0)
+#endif
 
 /* Create a set of AP_LUA_DECLARE(type), AP_LUA_DECLARE_NONSTD(type) and
  * AP_LUA_DECLARE_DATA with appropriate export and import tags for the platform