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)