dev-lua/vstruct: add
[lua-alt-overlay.git] / dev-lua / luafilesystem / files / allow-5.4.patch
blobc78a9134a8846d0d5b72fc20f7288533678a54eb
1 diff --git a/src/lfs.c b/src/lfs.c
2 index 352e17b..4143a47 100644
3 --- a/src/lfs.c
4 +++ b/src/lfs.c
5 @@ -226,7 +226,7 @@ static FILE *check_file (lua_State *L, int idx, const char *funcname) {
6 return 0;
7 } else
8 return *fh;
9 -#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 503
10 +#elif LUA_VERSION_NUM >= 502 && LUA_VERSION_NUM <= 504
11 luaL_Stream *fh = (luaL_Stream *)luaL_checkudata (L, idx, "FILE*");
12 if (fh->closef == 0 || fh->f == NULL) {
13 luaL_error (L, "%s: closed file", funcname);