| Index: runtime/bin/file_win.cc
|
| diff --git a/runtime/bin/file_win.cc b/runtime/bin/file_win.cc
|
| index 1293dce802ec5f57ccdb8b1cc2ff713cfa9f70b5..c69ba53bceafe2b293bf79e647388a0acff60741 100644
|
| --- a/runtime/bin/file_win.cc
|
| +++ b/runtime/bin/file_win.cc
|
| @@ -163,6 +163,15 @@ off_t File::LengthFromName(const char* name) {
|
| }
|
|
|
|
|
| +time_t File::LastModified(const char* name) {
|
| + struct stat st;
|
| + if (stat(name, &st) == 0) {
|
| + return st.st_mtime;
|
| + }
|
| + return -1;
|
| +}
|
| +
|
| +
|
| bool File::IsAbsolutePath(const char* pathname) {
|
| // Should we consider network paths?
|
| if (pathname == NULL) return false;
|
|
|