From 3b5c6ff9c0c9c2cb55e72271779d9143a087244c Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Sun, 13 Dec 2020 14:39:23 +0100 Subject: [PATCH] Fix build for Haiku which doesn't have O_ASYNC yet (#2485) --- src/widgets/ConsoleWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/widgets/ConsoleWidget.cpp b/src/widgets/ConsoleWidget.cpp index 4a116c41..434116e4 100644 --- a/src/widgets/ConsoleWidget.cpp +++ b/src/widgets/ConsoleWidget.cpp @@ -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