diff options
-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) |