[Lldb-commits] [lldb] r105813 - /lldb/trunk/source/Core/FileSpec.cpp

Eli Friedman eli.friedman at gmail.com
Thu Jun 10 21:52:22 PDT 2010


Author: efriedma
Date: Thu Jun 10 23:52:22 2010
New Revision: 105813

URL: http://llvm.org/viewvc/llvm-project?rev=105813&view=rev
Log:
Use st_mtime instead of st_mtimespec for portability.


Modified:
    lldb/trunk/source/Core/FileSpec.cpp

Modified: lldb/trunk/source/Core/FileSpec.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/FileSpec.cpp?rev=105813&r1=105812&r2=105813&view=diff
==============================================================================
--- lldb/trunk/source/Core/FileSpec.cpp (original)
+++ lldb/trunk/source/Core/FileSpec.cpp Thu Jun 10 23:52:22 2010
@@ -373,7 +373,7 @@
     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;
 }
 





More information about the lldb-commits mailing list