summaryrefslogtreecommitdiffstats
path: root/src
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:13:23 +0100
commitee61bf8d1a23872f247f6b1c2ba387fb7ae98e43 (patch)
tree8d77c88f564f1e66d5412490d05abbf5d9ea9110 /src
parent0a1966b25e36fbca6263b656fec8de9d42770f8d (diff)
downloadqt3-ee61bf8d1a23872f247f6b1c2ba387fb7ae98e43.tar.gz
qt3-ee61bf8d1a23872f247f6b1c2ba387fb7ae98e43.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>
Diffstat (limited to 'src')
-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)