diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 00:58:04 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-04-22 00:58:04 +0000 |
commit | 915b5c55084762d88ace671c6d255a5f7d2ba8ca (patch) | |
tree | df82d5077ae1da979acd74e349ccdefc7da2bfbb /file.c | |
parent | b1166a04694766f24385a5a91e028e39f7bd2461 (diff) | |
download | ruby-915b5c55084762d88ace671c6d255a5f7d2ba8ca.tar.gz |
* file.c (eaccess): workaround for recent msvcrt's behavior.
[ruby-core:16460]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16129 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -944,8 +944,8 @@ eaccess(const char *path, int mode) return -1; #else -# if _MSC_VER >= 1400 - mode &= 6; +# if defined(_MSC_VER) || defined(__MINGW32__) + mode &= ~1; # endif return access(path, mode); #endif |