summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/FileSpec.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2010-06-11 04:52:22 +0000
committerEli Friedman <eli.friedman@gmail.com>2010-06-11 04:52:22 +0000
commit6abb634bcf12d80cd88e4450c117e6e2a1b393a6 (patch)
tree9bba74d69b1232ffe0f6bedb728062d4f7ac536d /lldb/source/Core/FileSpec.cpp
parent8d860d557f3658859972d694f3e2bb99eda6bdf3 (diff)
downloadbcm5719-llvm-6abb634bcf12d80cd88e4450c117e6e2a1b393a6.tar.gz
bcm5719-llvm-6abb634bcf12d80cd88e4450c117e6e2a1b393a6.zip
Use st_mtime instead of st_mtimespec for portability.
llvm-svn: 105813
Diffstat (limited to 'lldb/source/Core/FileSpec.cpp')
-rw-r--r--lldb/source/Core/FileSpec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Core/FileSpec.cpp b/lldb/source/Core/FileSpec.cpp
index 305650d8643..4fef5cd5b36 100644
--- a/lldb/source/Core/FileSpec.cpp
+++ b/lldb/source/Core/FileSpec.cpp
@@ -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;
}
OpenPOWER on IntegriCloud