diff options
author | Slávek Banko <[email protected]> | 2019-02-16 19:13:23 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2019-02-16 19:13:23 +0100 |
commit | ee61bf8d1a23872f247f6b1c2ba387fb7ae98e43 (patch) | |
tree | 8d77c88f564f1e66d5412490d05abbf5d9ea9110 | |
parent | 0a1966b25e36fbca6263b656fec8de9d42770f8d (diff) | |
download | qt3-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 <[email protected]>
-rw-r--r-- | src/kernel/qlock.cpp | 1 |
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) |