--- a/hotspot/src/share/vm/utilities/ostream.cpp Tue Mar 15 20:37:35 2016 +0000
+++ b/hotspot/src/share/vm/utilities/ostream.cpp Sat Mar 12 08:35:05 2016 +0100
@@ -504,7 +504,7 @@
if (_file != NULL) {
_need_close = true;
} else {
- warning("Cannot open file %s due to %s\n", file_name, strerror(errno));
+ warning("Cannot open file %s due to %s\n", file_name, os::strerror(errno));
_need_close = false;
}
}
@@ -514,7 +514,7 @@
if (_file != NULL) {
_need_close = true;
} else {
- warning("Cannot open file %s due to %s\n", file_name, strerror(errno));
+ warning("Cannot open file %s due to %s\n", file_name, os::strerror(errno));
_need_close = false;
}
}