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:
parent
e76a01d690
commit
50d9ed401b
@ -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)
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user