diff --git a/tests/auto/corelib/kernel/qcoreapplication/apphelper.cpp b/tests/auto/corelib/kernel/qcoreapplication/apphelper.cpp index ec31c687b30..ce2360c569f 100644 --- a/tests/auto/corelib/kernel/qcoreapplication/apphelper.cpp +++ b/tests/auto/corelib/kernel/qcoreapplication/apphelper.cpp @@ -2,6 +2,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include +#include #include #include @@ -62,7 +63,7 @@ static int exitFromThread(int argc, char **argv) // block the GUI forever, otherwise the unloading of the QPA plugins // could cause a crash if something is running. char c; - int r = read(STDIN_FILENO, &c, 1); + int r = QT_READ(STDIN_FILENO, &c, 1); Q_UNUSED(r); }); app.exec();