hotspot/src/share/vm/logging/logFileOutput.cpp
changeset 38065 025c784d9333
parent 37465 1d5551f466ee
child 38195 d317aafcc87c
--- a/hotspot/src/share/vm/logging/logFileOutput.cpp	Fri Apr 22 13:43:36 2016 +0200
+++ b/hotspot/src/share/vm/logging/logFileOutput.cpp	Fri Apr 22 14:57:18 2016 +0200
@@ -252,7 +252,7 @@
 
   if (_file_count == 0 && is_regular_file(_file_name)) {
     log_trace(logging)("Truncating log file");
-    os::ftruncate(os::fileno(_stream), 0);
+    os::ftruncate(os::get_fileno(_stream), 0);
   }
 
   return true;