Fix -no-feature-sharedmemory

Fixes: QTBUG-114779
Change-Id: I7acf9bc2ba461fe1644c4ff6a157f88c9cce84c4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
(cherry picked from commit 514a6776e1055015ace1ef6378834a6c4d776864)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
André Klitzing 2023-08-29 15:58:27 +02:00 committed by Qt Cherry-pick Bot
parent e76a01d690
commit 50d9ed401b
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@
#include <errno.h> #include <errno.h>
#if QT_CONFIG(sharedmemory)
#if QT_CONFIG(posix_shm) #if QT_CONFIG(posix_shm)
#include <sys/types.h> #include <sys/types.h>
#include <sys/mman.h> #include <sys/mman.h>
@ -192,3 +193,4 @@ bool QSharedMemoryPosix::detach(QSharedMemoryPrivate *self)
QT_END_NAMESPACE QT_END_NAMESPACE
#endif // QT_CONFIG(posix_shm) #endif // QT_CONFIG(posix_shm)
#endif // QT_CONFIG(sharedmemory)

View File

@ -11,6 +11,7 @@
#include <errno.h> #include <errno.h>
#if QT_CONFIG(sharedmemory)
#if QT_CONFIG(sysv_shm) #if QT_CONFIG(sysv_shm)
#include <sys/types.h> #include <sys/types.h>
#include <sys/ipc.h> #include <sys/ipc.h>
@ -205,3 +206,4 @@ bool QSharedMemorySystemV::detach(QSharedMemoryPrivate *self)
QT_END_NAMESPACE QT_END_NAMESPACE
#endif // QT_CONFIG(sysv_shm) #endif // QT_CONFIG(sysv_shm)
#endif // QT_CONFIG(sharedmemory)