Fix build for Haiku which doesn't have O_ASYNC yet (#2485)

This commit is contained in:
Schrijvers Luc 2020-12-13 14:39:23 +01:00 committed by GitHub
parent eefaabd30f
commit 3b5c6ff9c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -434,6 +434,11 @@ void ConsoleWidget::processQueuedOutput()
}
}
// Haiku doesn't have O_ASYNC
#ifdef Q_OS_HAIKU
#define O_ASYNC O_NONBLOCK
#endif
void ConsoleWidget::redirectOutput()
{
// Make sure that we are running in a valid console with initialized output handles