diff options
Diffstat (limited to 'libs/host/CopyFile.c')
-rw-r--r-- | libs/host/CopyFile.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/host/CopyFile.c b/libs/host/CopyFile.c index ca5256555..f0c8fe5b5 100644 --- a/libs/host/CopyFile.c +++ b/libs/host/CopyFile.c @@ -68,15 +68,13 @@ static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstSt */ static bool isHiresMtime(const struct stat* pSrcStat) { -#if HAVE_STAT_ST_MTIM -#if defined(MACOSX_RSRC) +#if defined(__CYGWIN__) || defined(__MINGW32__) + return 0; +#elif defined(MACOSX_RSRC) return pSrcStat->st_mtimespec.tv_nsec > 0; #else return pSrcStat->st_mtim.tv_nsec > 0; #endif -#else - return 0; -#endif } /* |