From 18dffbd7bfcfb4663da8e59e9ce0d12a28f63276 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Mon, 14 Oct 2024 10:05:08 +0200 Subject: [PATCH] ProcessStub: run setupUnixInferior() only on Unices setupUnixInferior() is meant to run only Unix systems, in the same way setupWindowsInferior() is meant only for Windows. Hence, guard its whole body within Q_OS_UNIX. Followup of commit 075876e8b2377d89ddf2a6c43b503d61b6fde5b9. Change-Id: Ia3482c18e30d1044cc022c24413bcac7663e3829 Reviewed-by: Marcus Tillmanns --- src/tools/process_stub/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/process_stub/main.cpp b/src/tools/process_stub/main.cpp index 1ab190b652d..088e42ec5fb 100644 --- a/src/tools/process_stub/main.cpp +++ b/src/tools/process_stub/main.cpp @@ -277,6 +277,7 @@ void onInferiorStarted() void setupUnixInferior() { +#ifdef Q_OS_UNIX if (debugMode) { qCInfo(log) << "Debug mode enabled"; #ifdef Q_OS_DARWIN @@ -296,6 +297,7 @@ void setupUnixInferior() }); #endif } +#endif } void setupWindowsInferior()