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:
@@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user