diff -r 430e0a96ef1f -r 025c784d9333 hotspot/src/share/vm/logging/logFileOutput.cpp --- 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;