forked from OSchip/llvm-project
Use st_mtime instead of st_mtimespec for portability.
llvm-svn: 105813
This commit is contained in:
parent
8d860d557f
commit
6abb634bcf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue