diff --git a/src/corelib/io/qprocess_unix.cpp b/src/corelib/io/qprocess_unix.cpp index 364da89ff6..59e920bc18 100644 --- a/src/corelib/io/qprocess_unix.cpp +++ b/src/corelib/io/qprocess_unix.cpp @@ -455,7 +455,7 @@ void QProcessPrivate::startProcess() int ffdflags = FFD_CLOEXEC; // QTBUG-86285 -#if !QT_CONFIG(forkfd_pidfd) +#if defined(Q_OS_LINUX) && !QT_CONFIG(forkfd_pidfd) ffdflags |= FFD_USE_FORK; #endif