CopyFile: Remove bogus reference to HAVE_VALID_STAT_ST_INO

This was never defined anywhere and only Windows doesn't have
a valid st_ino field on struct stat.

bug: 26355387
Change-Id: I40b8779606057281e2e6a2723ef93cd2f2d99a68
This commit is contained in:
Narayan Kamath 2016-01-05 16:16:37 +00:00
parent d443abf1aa
commit c407052766
1 changed files with 2 additions and 3 deletions

View File

@ -67,7 +67,7 @@ static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstSt
*/ */
static bool isHiresMtime(const struct stat* pSrcStat) static bool isHiresMtime(const struct stat* pSrcStat)
{ {
#if defined(__CYGWIN__) || defined(__MINGW32__) #if defined(_WIN32)
return 0; return 0;
#elif defined(MACOSX_RSRC) #elif defined(MACOSX_RSRC)
return pSrcStat->st_mtimespec.tv_nsec > 0; return pSrcStat->st_mtimespec.tv_nsec > 0;
@ -83,8 +83,7 @@ static bool isHiresMtime(const struct stat* pSrcStat)
*/ */
static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat) static bool isSameFile(const struct stat* pSrcStat, const struct stat* pDstStat)
{ {
#ifndef HAVE_VALID_STAT_ST_INO #if defined(_WIN32)
/* TODO: suspicious, we hit this case even when compiling for linux: b/26355387 */
(void)pSrcStat; (void)pSrcStat;
(void)pDstStat; (void)pDstStat;
/* with MSVCRT.DLL, stat always sets st_ino to 0, and there is no simple way to */ /* with MSVCRT.DLL, stat always sets st_ino to 0, and there is no simple way to */