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:29 +0100
commitd85c2df3c7b4f45b36df30b4e66d3f3b71b24b98 (patch)
tree180bb942a950268c0f70202a5e2ca120759e46b3
parent80d5792c61ca4504242b77dcdd4b312b361551b4 (diff)
downloadqt3-d85c2df3c7b4f45b36df30b4e66d3f3b71b24b98.tar.gz
qt3-d85c2df3c7b4f45b36df30b4e66d3f3b71b24b98.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)