1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

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
This commit is contained in:
Guenter Knauf
2011-12-20 11:27:43 +00:00
parent 3f12b4173d
commit 3db3bf501c
2 changed files with 8 additions and 0 deletions

View File

@@ -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
*/