summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2016-06-14 07:49:13 -0700
committerThiago Macieira <thiago.macieira@intel.com>2016-07-02 16:37:03 +0000
commit946c1a578a7c1e6acc95ef8095fa8a6ff026334b (patch)
tree631da63d080451736133ed33dad40503ce0ead81 /src
parent4f3eb6617331ba2634206064512ae68a4fbd793e (diff)
Fix build: ftok(3) requires sys/ipc.h
Task-number: QTBUG-54069 Change-Id: Ib57b52598e2f452985e9fffd1457fa9c7ad3bac0 Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qcore_unix_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/corelib/kernel/qcore_unix_p.h b/src/corelib/kernel/qcore_unix_p.h
index 05711354ff..07725b8cd2 100644
--- a/src/corelib/kernel/qcore_unix_p.h
+++ b/src/corelib/kernel/qcore_unix_p.h
@@ -72,6 +72,10 @@
#include <errno.h>
#include <fcntl.h>
+#if !defined(QT_POSIX_IPC) && !defined(QT_NO_SHAREDMEMORY) && !defined(Q_OS_ANDROID)
+# include <sys/ipc.h>
+#endif
+
#if defined(Q_OS_VXWORKS)
# include <ioLib.h>
#endif