OSDN Git Service

Re-sync to pf3gnuchains3x.
[pf3gnuchains/pf3gnuchains4x.git] / gold / fileread.cc
index ac30769..d183c57 100644 (file)
@@ -823,11 +823,9 @@ File_read::get_mtime()
   if (fstat(this->descriptor_, &file_stat) < 0)
     gold_fatal(_("%s: stat failed: %s"), this->name_.c_str(),
               strerror(errno));
-#ifdef HAVE_STAT_ST_MTIM
-  return Timespec(file_stat.st_mtim.tv_sec, file_stat.st_mtim.tv_nsec);
-#else
+  // TODO: do a configure check if st_mtim is present and get the
+  // nanoseconds part if it is.
   return Timespec(file_stat.st_mtime, 0);
-#endif
 }
 
 // Open the file.