mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-30 11:44:32 +03:00
Fix build issue with Lua >= 5.3
This commit is contained in:
committed by
Felipe Zimmerle
parent
cb91850bcd
commit
74558b42e4
@@ -111,8 +111,11 @@ char *lua_compile(msc_script **script, const char *filename, apr_pool_t *pool) {
|
|||||||
dump.pool = pool;
|
dump.pool = pool;
|
||||||
dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
|
dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
|
||||||
|
|
||||||
|
#if LUA_VERSION_NUM >= 503
|
||||||
|
lua_dump(L, dump_writer, &dump, 1);
|
||||||
|
#else
|
||||||
lua_dump(L, dump_writer, &dump);
|
lua_dump(L, dump_writer, &dump);
|
||||||
|
#endif
|
||||||
(*script) = apr_pcalloc(pool, sizeof(msc_script));
|
(*script) = apr_pcalloc(pool, sizeof(msc_script));
|
||||||
(*script)->name = filename;
|
(*script)->name = filename;
|
||||||
(*script)->parts = dump.parts;
|
(*script)->parts = dump.parts;
|
||||||
|
Reference in New Issue
Block a user