From 8fdd1bb8cb68332db605c9f250c64dd114747c45 Mon Sep 17 00:00:00 2001 From: Rafael Roquetto Date: Mon, 12 Jan 2015 13:12:40 -0200 Subject: QNX: Enable QSharedMemory and QSystemSemaphore support. Commit 96995db4af6e1f5e9fe313 implements the necessary bits for this to work under QNX. Change-Id: Ie9e2f421f4f27fcaf40697dd363e9ed047754f0d Reviewed-by: Tobias Koenig Reviewed-by: Konstantin Ritt --- examples/corelib/ipc/ipc.pro | 2 +- src/corelib/global/qglobal.h | 7 ------- tests/auto/corelib/kernel/kernel.pro | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/examples/corelib/ipc/ipc.pro b/examples/corelib/ipc/ipc.pro index 4b4b3870a4..5fc3c7457f 100644 --- a/examples/corelib/ipc/ipc.pro +++ b/examples/corelib/ipc/ipc.pro @@ -2,5 +2,5 @@ requires(qtHaveModule(widgets)) TEMPLATE = subdirs # no QSharedMemory -!vxworks:!qnx:SUBDIRS = sharedmemory +!vxworks:SUBDIRS = sharedmemory !wince*:qtHaveModule(network): SUBDIRS += localfortuneserver localfortuneclient diff --git a/src/corelib/global/qglobal.h b/src/corelib/global/qglobal.h index 48ba09075d..e368cf0d96 100644 --- a/src/corelib/global/qglobal.h +++ b/src/corelib/global/qglobal.h @@ -1049,13 +1049,6 @@ Q_CORE_EXPORT int qrand(); #define QT_MODULE(x) -#ifdef Q_OS_QNX -// QNX doesn't have SYSV style shared memory. Multiprocess QWS apps, -// shared fonts and QSystemSemaphore + QSharedMemory are not available -# define QT_NO_SYSTEMSEMAPHORE -# define QT_NO_SHAREDMEMORY -#endif - #if !defined(QT_BOOTSTRAPPED) && defined(QT_REDUCE_RELOCATIONS) && defined(__ELF__) && !defined(__PIC__) && !defined(__PIE__) # error "You must build your code with position independent code if Qt was built with -reduce-relocations. "\ "Compile your code with -fPIC or -fPIE." diff --git a/tests/auto/corelib/kernel/kernel.pro b/tests/auto/corelib/kernel/kernel.pro index 4b3b2e824e..7a3388c949 100644 --- a/tests/auto/corelib/kernel/kernel.pro +++ b/tests/auto/corelib/kernel/kernel.pro @@ -37,4 +37,4 @@ SUBDIRS=\ # This test is only applicable on Windows !win32*|winrt: SUBDIRS -= qwineventnotifier -android|qnx: SUBDIRS -= qsharedmemory qsystemsemaphore +android: SUBDIRS -= qsharedmemory qsystemsemaphore -- cgit v1.2.3