| Index: runtime/bin/file_macos.cc
|
| diff --git a/runtime/bin/file_macos.cc b/runtime/bin/file_macos.cc
|
| index 7f0806130ea5221dba1a9b59544088ba22d6fb40..d508c2e1ffc8f725253b2b4ea015a2ca0810dad9 100644
|
| --- a/runtime/bin/file_macos.cc
|
| +++ b/runtime/bin/file_macos.cc
|
| @@ -175,6 +175,15 @@ off_t File::LengthFromName(const char* name) {
|
| }
|
|
|
|
|
| +time_t File::LastModified(const char* name) {
|
| + struct stat st;
|
| + if (TEMP_FAILURE_RETRY(stat(name, &st)) == 0) {
|
| + return st.st_mtime;
|
| + }
|
| + return -1;
|
| +}
|
| +
|
| +
|
| bool File::IsAbsolutePath(const char* pathname) {
|
| return (pathname != NULL && pathname[0] == '/');
|
| }
|
|
|