Use st_mtime instead of st_mtimespec for portability.

llvm-svn: 105813
This commit is contained in:
Eli Friedman 2010-06-11 04:52:22 +00:00
parent 8d860d557f
commit 6abb634bcf
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ FileSpec::GetModificationTime () const
TimeValue mod_time;
struct stat file_stats;
if (GetFileStats (this, &file_stats))
mod_time = file_stats.st_mtimespec;
mod_time.OffsetWithSeconds(file_stats.st_mtime);
return mod_time;
}