summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/kernel/qsharedmemory
diff options
context:
space:
mode:
authorPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>2015-02-20 16:36:26 +0200
committerPasi Petäjäjärvi <pasi.petajajarvi@theqtcompany.com>2015-02-25 11:42:36 +0000
commit059a570b8a97b0e38af8c78656e638aa657310e8 (patch)
treeccc7f07da140598eda9c49e39e1405eb80df5886 /tests/auto/corelib/kernel/qsharedmemory
parent3f84c18ac0f4109906be4a80c3a1480b032e2e17 (diff)
Fix QT_POSIX_IPC support
On platforms which does not have at all sysv support, all posix ipc tests and compilation failed because sysv specific header files were included unconditionally. Change-Id: I5713ace6daeb6e79f8794ce42b2b3dfa1b95ab2d Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
Diffstat (limited to 'tests/auto/corelib/kernel/qsharedmemory')
-rw-r--r--tests/auto/corelib/kernel/qsharedmemory/test/tst_qsharedmemory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/kernel/qsharedmemory/test/tst_qsharedmemory.cpp b/tests/auto/corelib/kernel/qsharedmemory/test/tst_qsharedmemory.cpp
index af932202fe..5a92c2f0cb 100644
--- a/tests/auto/corelib/kernel/qsharedmemory/test/tst_qsharedmemory.cpp
+++ b/tests/auto/corelib/kernel/qsharedmemory/test/tst_qsharedmemory.cpp
@@ -173,8 +173,8 @@ void tst_QSharedMemory::cleanup()
#ifndef Q_OS_WIN
#include <private/qsharedmemory_p.h>
#include <sys/types.h>
-#include <sys/ipc.h>
#ifndef QT_POSIX_IPC
+#include <sys/ipc.h>
#include <sys/shm.h>
#else
#include <sys/mman.h>