summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-16 19:13:23 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-16 19:14:08 +0100
commitc966e917a9f092e8b35e1f274dcddebdcb77c3e0 (patch)
treee3c9623b23a540db46ed51202f72ef7690bf4448
parent5a7d49f513197ca7dbf3696c744151c7d120fe32 (diff)
downloadqt3-c966e917a9f092e8b35e1f274dcddebdcb77c3e0.tar.gz
qt3-c966e917a9f092e8b35e1f274dcddebdcb77c3e0.zip
Add the definition _WANT_SEMUN to ensure the definition of the semun structure.
This resolves bug 2991. Thanks to Nikolaus Klepp for initial patch. Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit ee61bf8d1a23872f247f6b1c2ba387fb7ae98e43)
-rw-r--r--src/kernel/qlock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/kernel/qlock.cpp b/src/kernel/qlock.cpp
index 56faa1d..02dfd76 100644
--- a/src/kernel/qlock.cpp
+++ b/src/kernel/qlock.cpp
@@ -47,6 +47,7 @@
#include <sys/stat.h>
#include <sys/file.h>
#else
+#define _WANT_SEMUN
#include <sys/sem.h>
#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) \
|| defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_BSDI)