diff options
-rw-r--r-- | coreutils/test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coreutils/test.c b/coreutils/test.c index 3e9ab7c65..caecd7d02 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -620,6 +620,10 @@ static int filstat(char *nm, enum token mode) | |||
620 | } | 620 | } |
621 | 621 | ||
622 | #if ENABLE_PLATFORM_MINGW32 | 622 | #if ENABLE_PLATFORM_MINGW32 |
623 | #undef R_OK | ||
624 | #define R_OK S_IREAD | ||
625 | #undef W_OK | ||
626 | #define W_OK S_IWRITE | ||
623 | if (mode == FILEX) { | 627 | if (mode == FILEX) { |
624 | int len = strlen(nm), ret; | 628 | int len = strlen(nm), ret; |
625 | if (len >= 4 && | 629 | if (len >= 4 && |