ModSecurity: fixed compiling with lua 5.2

This commit is contained in:
Breno Silva
2013-01-30 22:03:15 -04:00
parent f9b113b869
commit 8816254cc8
2 changed files with 21 additions and 0 deletions

View File

@@ -440,7 +440,11 @@ static modsec_rec *create_tx_context(request_rec *r) {
#if defined(WITH_LUA)
#ifdef CACHE_LUA
#if LUA_VERSION_NUM > 501
msr->L = luaL_newstate();
#else
msr->L = lua_open();
#endif
luaL_openlibs(msr->L);
#endif
#endif