diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-08-12 21:25:27 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-08-16 09:59:07 +0000 |
commit | 3a46a5916548b6e5a8bce58ae2e589be238c8fab (patch) | |
tree | fa68a868eaa8a94dc5c91b651e292556d34d030c | |
parent | 91cca1f4b4c9b10134c3b297f579e2e36d62f48b (diff) | |
download | qtapplicationmanager-3a46a5916548b6e5a8bce58ae2e589be238c8fab.tar.gz |
Add explicit include for std::abort (part 2)
Change-Id: I4d6bf4d4d29133202c0b7dfd088d09cf2a64d1c0
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
(cherry picked from commit 50255bf75103520c288f7ed31d2eddc22bcb18a1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/common-lib/crashhandler.cpp | 1 | ||||
-rw-r--r-- | src/main-lib/main.cpp | 1 | ||||
-rw-r--r-- | tests/auto/qml/crash/qmlcrash/qmlcrash.cpp | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/src/common-lib/crashhandler.cpp b/src/common-lib/crashhandler.cpp index 6c248d81..1e3389cc 100644 --- a/src/common-lib/crashhandler.cpp +++ b/src/common-lib/crashhandler.cpp @@ -284,6 +284,7 @@ QT_END_NAMESPACE_AM # include <signal.h> # include <pthread.h> # include <stdio.h> +# include <stdlib.h> # if defined(AM_USE_LIBBACKTRACE) # include <libbacktrace/backtrace.h> diff --git a/src/main-lib/main.cpp b/src/main-lib/main.cpp index 437753b6..80b96751 100644 --- a/src/main-lib/main.cpp +++ b/src/main-lib/main.cpp @@ -4,6 +4,7 @@ // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only #include <memory> +#include <cstdlib> #include <qglobal.h> #if defined(QT_DBUS_LIB) && !defined(AM_DISABLE_EXTERNAL_DBUS_INTERFACES) diff --git a/tests/auto/qml/crash/qmlcrash/qmlcrash.cpp b/tests/auto/qml/crash/qmlcrash/qmlcrash.cpp index 117bdbc3..19ad337a 100644 --- a/tests/auto/qml/crash/qmlcrash/qmlcrash.cpp +++ b/tests/auto/qml/crash/qmlcrash/qmlcrash.cpp @@ -9,6 +9,7 @@ #include "qmlcrash.h" #include <signal.h> +#include <stdlib.h> static QObject *qmlCrash_provider(QQmlEngine *engine, QJSEngine *scriptEngine) |