Commit 8aeb213d authored by Guenter Knauf's avatar Guenter Knauf
Browse files

Make mod_lua compile with lua 5.2.x.

MOdified patch submitted by NormW (nornw gknw net).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1221205 13f79535-47bb-0310-9956-ffa450edef68
parent f110a256
Loading
Loading
Loading
Loading
+1 −0
Changes for modules/lua/NWGNUmakefile: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ XCFLAGS += \
# These defines will come after DEFINES
#
XDEFINES	+= \
			-DLUA_COMPAT_ALL \
			$(EOLIST)

#
+7 −0
Changes for modules/lua/mod_lua.h: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -44,6 +44,13 @@
#include "lauxlib.h"
#include "lualib.h"

#if LUA_VERSION_NUM > 501
/* Load mode for lua_load() */
#define DFLT_LUA_LOAD_MODE "bt"
#define lua_load(a,b,c,d) lua_load(a,b,c,d,DFLT_LUA_LOAD_MODE)
#define luaL_reg luaL_Reg
#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
 */