From 50d9ed401bd938b1812c1ef7cf9aa252d0d1f1a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Klitzing?= Date: Tue, 29 Aug 2023 15:58:27 +0200 Subject: [PATCH] Fix -no-feature-sharedmemory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes: QTBUG-114779 Change-Id: I7acf9bc2ba461fe1644c4ff6a157f88c9cce84c4 Reviewed-by: MÃ¥rten Nordheim (cherry picked from commit 514a6776e1055015ace1ef6378834a6c4d776864) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/ipc/qsharedmemory_posix.cpp | 2 ++ src/corelib/ipc/qsharedmemory_systemv.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/corelib/ipc/qsharedmemory_posix.cpp b/src/corelib/ipc/qsharedmemory_posix.cpp index 744a6d67a45..88448100e11 100644 --- a/src/corelib/ipc/qsharedmemory_posix.cpp +++ b/src/corelib/ipc/qsharedmemory_posix.cpp @@ -10,6 +10,7 @@ #include +#if QT_CONFIG(sharedmemory) #if QT_CONFIG(posix_shm) #include #include @@ -192,3 +193,4 @@ bool QSharedMemoryPosix::detach(QSharedMemoryPrivate *self) QT_END_NAMESPACE #endif // QT_CONFIG(posix_shm) +#endif // QT_CONFIG(sharedmemory) diff --git a/src/corelib/ipc/qsharedmemory_systemv.cpp b/src/corelib/ipc/qsharedmemory_systemv.cpp index cc98b560aeb..716b7aedd11 100644 --- a/src/corelib/ipc/qsharedmemory_systemv.cpp +++ b/src/corelib/ipc/qsharedmemory_systemv.cpp @@ -11,6 +11,7 @@ #include +#if QT_CONFIG(sharedmemory) #if QT_CONFIG(sysv_shm) #include #include @@ -205,3 +206,4 @@ bool QSharedMemorySystemV::detach(QSharedMemoryPrivate *self) QT_END_NAMESPACE #endif // QT_CONFIG(sysv_shm) +#endif // QT_CONFIG(sharedmemory)