mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-19 18:44:38 +02:00
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:
parent
2e4cd63893
commit
dafa24689b
4 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue