Skip to content

Instantly share code, notes, and snippets.

@dcarrith
Created February 27, 2015 20:31
Show Gist options
  • Save dcarrith/e6f22879768b5ccfb2f0 to your computer and use it in GitHub Desktop.
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
--- 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