hotspot/src/share/vm/utilities/ostream.cpp
changeset 37113 5a33bf5089ac
parent 36570 9608a7830fe9
child 37179 4dbcb3a642d2
--- 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;
   }
 }