8154921: Fix aix after "8146879: Add option for handling existing log files in UL"

Rename os::fileno to os::get_fileno because AIX defines macro 'fileno'.

Reviewed-by: coleenp
This commit is contained in:
Goetz Lindenmaier 2016-04-22 14:57:18 +02:00
parent 2e4cd63893
commit dafa24689b
4 changed files with 5 additions and 5 deletions

View file

@ -252,7 +252,7 @@ bool LogFileOutput::initialize(const char* options, outputStream* errstream) {
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;