Skip to content

Commit 74558b4

Browse files
omadjoudjFelipe Zimmerle
authored and
Felipe Zimmerle
committed
Fix build issue with Lua >= 5.3
1 parent cb91850 commit 74558b4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

apache2/msc_lua.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,11 @@ char *lua_compile(msc_script **script, const char *filename, apr_pool_t *pool) {
111111
dump.pool = pool;
112112
dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
113113

114+
#if LUA_VERSION_NUM >= 503
115+
lua_dump(L, dump_writer, &dump, 1);
116+
#else
114117
lua_dump(L, dump_writer, &dump);
115-
118+
#endif
116119
(*script) = apr_pcalloc(pool, sizeof(msc_script));
117120
(*script)->name = filename;
118121
(*script)->parts = dump.parts;

0 commit comments

Comments
 (0)