From: W. Felix Handte Date: Mon, 10 Aug 2020 21:28:34 +0000 (-0400) Subject: Fix MS Build X-Git-Tag: v1.4.7~102^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=953f0a072ac02773fd16f6ab1df037670bc3ae74;p=thirdparty%2Fzstd.git Fix MS Build --- diff --git a/programs/fileio.c b/programs/fileio.c index 2c0d2772d..d5b8a7d14 100644 --- a/programs/fileio.c +++ b/programs/fileio.c @@ -514,7 +514,7 @@ static int FIO_removeFile(const char* path) #if defined(_WIN32) || defined(WIN32) /* windows doesn't allow remove read-only files, * so try to make it writable first */ - if (!(statbuf.mode & _S_IWRITE)) { + if (!(statbuf.st_mode & _S_IWRITE)) { UTIL_chmod(path, &statbuf, _S_IWRITE); } #endif