summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2019-02-16 19:12:49 +0100
committerSlávek Banko <slavek.banko@axis.cz>2019-02-16 19:12:49 +0100
commitb7be699a0982bb35f229337616bb24795d4762ed (patch)
tree4287d7811589608e405459e692d06bd1bd71a7dc
parent4e83f4f200f4832280808796694495ebb20070b6 (diff)
downloadtqt3-b7be699a0982bb35f229337616bb24795d4762ed.tar.gz
tqt3-b7be699a0982bb35f229337616bb24795d4762ed.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>
-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 f8b8be46..948e7602 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)