8214944: replace strerror by os::strerror

Reviewed-by: dholmes, neliasso
This commit is contained in:
Matthias Baesken 2018-12-06 09:48:33 +01:00
parent 75822e9f7a
commit f8ccc8393b
7 changed files with 7 additions and 7 deletions

View file

@ -3388,7 +3388,7 @@ bool os::message_box(const char* title, const char* message) {
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