mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-13 13:26:01 +03:00
Allow LuaJIT 2.1 to be used
This commit is contained in:
parent
28f6f2201f
commit
20ef01d75c
@ -68,7 +68,8 @@ else
|
||||
case $LUA_PKG_VERSION in
|
||||
(5.1*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
|
||||
(5.2*) LUA_CFLAGS="-DWITH_LUA_5_2 ${LUA_CFLAGS}" ; lua_5_2=1 ;;
|
||||
(2.*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
|
||||
(2.0*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
|
||||
(2.1*) LUA_CFLAGS="-DWITH_LUA_5_1 -DWITH_LUA_JIT_2_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
|
||||
esac
|
||||
AC_MSG_NOTICE([LUA pkg-config version: ${LUA_PKG_VERSION}])
|
||||
fi
|
||||
|
@ -102,7 +102,7 @@ static const struct luaL_Reg mscLuaLib[] = {
|
||||
} // namespace modsecurity
|
||||
|
||||
#ifdef WITH_LUA
|
||||
#if defined LUA_VERSION_NUM && LUA_VERSION_NUM < 502
|
||||
#if defined LUA_VERSION_NUM && LUA_VERSION_NUM < 502 && !defined WITH_LUA_JIT_2_1
|
||||
/*
|
||||
** Adapted from Lua 5.2.0
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user