< prev index next >

src/hotspot/os/bsd/os_bsd.cpp

Print this page
rev 52870 : 8214944: replace strerror by os::strerror

@@ -3386,11 +3386,11 @@
 }
 
 static inline struct timespec get_mtime(const char* filename) {
   struct stat st;
   int ret = os::stat(filename, &st);
-  assert(ret == 0, "failed to stat() file '%s': %s", filename, strerror(errno));
+  assert(ret == 0, "failed to stat() file '%s': %s", filename, os::strerror(errno));
 #ifdef __APPLE__
   return st.st_mtimespec;
 #else
   return st.st_mtim;
 #endif
< prev index next >