summaryrefslogtreecommitdiffstats
path: root/libs/host/CopyFile.c
diff options
context:
space:
mode:
authorYabin Cui <yabinc@google.com>2014-11-10 10:37:14 -0800
committerYabin Cui <yabinc@google.com>2014-11-10 15:27:49 -0800
commit4120e835fb43ee059e83e3f34833bf15a7d6d7a3 (patch)
tree20afe300d0538248a7fbdf4c3e63b7c0f37f159e /libs/host/CopyFile.c
parent652ff716b819b694be76e63f059dca50e7febb8d (diff)
downloadbuild-4120e835fb43ee059e83e3f34833bf15a7d6d7a3.tar.gz
build-4120e835fb43ee059e83e3f34833bf15a7d6d7a3.tar.bz2
build-4120e835fb43ee059e83e3f34833bf15a7d6d7a3.zip
kill HAVE_STAT_ST_MTIM
Bug: 18300671 Change-Id: I92b5691924b995d9c883fc0f777c566ac4c35d1d
Diffstat (limited to 'libs/host/CopyFile.c')
-rw-r--r--libs/host/CopyFile.c8
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
}
/*