Skip to content

Conversation

@victorhora
Copy link
Contributor

Simple change to allow for LuaJIT 2.1 to be used with ModSecurity.

The issue happened due to luaL_setfuncs() already being defined in LuaJIT 2.1 (see lauxlib.h#L88).

Commit dee9898#diff-f120b67754e2c3ff8a98d4e3007f12efR111 defines this func as it is being used by the Lua engine inside ModSecurity (lua.cc#L138) but it is lacking in Lua 5.1 to make it compatible.

An extra if defined condition (WITH_LUA_JIT_2_1) was added to cover for LuaJIT 2.1.

Should fix #1909.

@victorhora
Copy link
Contributor Author

Merged as of 20ef01d

@victorhora victorhora closed this Oct 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ModSecurity 3 no longer compiles with LuaJIT 2.1

2 participants