Skip to content

Commit 973bfae

Browse files
committed
Fixed compat lua_load() with lua 5.2.x
1 parent 21b8770 commit 973bfae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apache2/msc_lua.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ static int lua_restore(lua_State *L, msc_script *script) {
7979
dumpr.script = script;
8080
dumpr.index = 0;
8181

82+
#if LUA_VERSION_NUM > 501
83+
return lua_load(L, dump_reader, &dumpr, script->name, NULL);
84+
#else
8285
return lua_load(L, dump_reader, &dumpr, script->name);
86+
#endif
8387
}
8488

8589
/**

0 commit comments

Comments
 (0)