Fix -no-feature-sharedmemory

Pick-to: 6.6
Fixes: QTBUG-114779
Change-Id: I7acf9bc2ba461fe1644c4ff6a157f88c9cce84c4
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
This commit is contained in:
André Klitzing 2023-08-29 15:58:27 +02:00
parent d4cccd0471
commit 514a6776e1
2 changed files with 4 additions and 0 deletions

View File

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

View File

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