File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 68
68
case $LUA_PKG_VERSION in
69
69
(5.1*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
70
70
(5.2*) LUA_CFLAGS="-DWITH_LUA_5_2 ${LUA_CFLAGS}" ; lua_5_2=1 ;;
71
- (2.*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
71
+ (2.0*) LUA_CFLAGS="-DWITH_LUA_5_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
72
+ (2.1*) LUA_CFLAGS="-DWITH_LUA_5_1 -DWITH_LUA_JIT_2_1 ${LUA_CFLAGS}" ; lua_5_1=1 ;;
72
73
esac
73
74
AC_MSG_NOTICE ( [ LUA pkg-config version: ${LUA_PKG_VERSION}] )
74
75
fi
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ static const struct luaL_Reg mscLuaLib[] = {
102
102
} // namespace modsecurity
103
103
104
104
#ifdef WITH_LUA
105
- #if defined LUA_VERSION_NUM && LUA_VERSION_NUM < 502
105
+ #if defined LUA_VERSION_NUM && LUA_VERSION_NUM < 502 && !defined WITH_LUA_JIT_2_1
106
106
/*
107
107
** Adapted from Lua 5.2.0
108
108
*/
You can’t perform that action at this time.
0 commit comments