diff options
author | Robert Griebl <robert.griebl@qt.io> | 2022-08-12 21:25:27 +0200 |
---|---|---|
committer | Robert Griebl <robert.griebl@qt.io> | 2022-08-16 11:21:58 +0200 |
commit | 50255bf75103520c288f7ed31d2eddc22bcb18a1 (patch) | |
tree | dbbb2045f641619609cdcea92047ffd29b5f776f | |
parent | cb9e3ecefb5908b5a74854afcbb399b3241c1fc6 (diff) | |
download | qtapplicationmanager-50255bf75103520c288f7ed31d2eddc22bcb18a1.tar.gz |
Add explicit include for std::abort (part 2)
Change-Id: I4d6bf4d4d29133202c0b7dfd088d09cf2a64d1c0
Pick-to: 5.15 6.4
Reviewed-by: Dominik Holland <dominik.holland@qt.io>
-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 f09e18fb..14b287f4 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) |