Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow LuaJIT 2.1 to be used #1910

Closed
wants to merge 1 commit into from
Closed

Allow LuaJIT 2.1 to be used #1910

wants to merge 1 commit into from

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