equal
deleted
inserted
replaced
3386 } |
3386 } |
3387 |
3387 |
3388 static inline struct timespec get_mtime(const char* filename) { |
3388 static inline struct timespec get_mtime(const char* filename) { |
3389 struct stat st; |
3389 struct stat st; |
3390 int ret = os::stat(filename, &st); |
3390 int ret = os::stat(filename, &st); |
3391 assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno)); |
3391 assert(ret == 0, "failed to stat() file '%s': %s", filename, os::strerror(errno)); |
3392 #ifdef __APPLE__ |
3392 #ifdef __APPLE__ |
3393 return st.st_mtimespec; |
3393 return st.st_mtimespec; |
3394 #else |
3394 #else |
3395 return st.st_mtim; |
3395 return st.st_mtim; |
3396 #endif |
3396 #endif |