diff options
Diffstat (limited to 'Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c')
-rw-r--r-- | Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c index 6279c0f2b5c..fe0d432a459 100644 --- a/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c +++ b/Build/source/texk/web2c/luatexdir/luafilesystem/src/lfs.c @@ -98,8 +98,12 @@ typedef struct dir_data { #endif #define STAT_FUNC _stati64 #else -#define _O_TEXT 0 -#define _O_BINARY 0 +#ifndef _O_TEXT + #define _O_TEXT 0 +#endif +#ifndef _O_BINARY + #define _O_BINARY 0 +#endif #define lfs_setmode(L,file,m) ((void)((void)file,m), \ luaL_error(L, LUA_QL("setmode") " not supported on this platform"), -1) #define STAT_STRUCT struct stat |