Created
February 27, 2015 20:31
-
-
Save dcarrith/e6f22879768b5ccfb2f0 to your computer and use it in GitHub Desktop.
Patch to fix build of mod_security 2.9.0 when lua-5.3.0 is installed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- msc_lua.c 2015-02-12 14:08:30.000000000 -0500 | |
+++ msc_lua_fixed.c 2015-02-27 10:21:25.434186889 -0500 | |
@@ -111,8 +111,11 @@ | |
dump.pool = pool; | |
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); | |
- | |
+#endif | |
(*script) = apr_pcalloc(pool, sizeof(msc_script)); | |
(*script)->name = filename; | |
(*script)->parts = dump.parts; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment