From c966e917a9f092e8b35e1f274dcddebdcb77c3e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 16 Feb 2019 19:13:23 +0100 Subject: [PATCH] Add the definition _WANT_SEMUN to ensure the definition of the semun structure. This resolves bug 2991. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks to Nikolaus Klepp for initial patch. Signed-off-by: Slávek Banko (cherry picked from commit ee61bf8d1a23872f247f6b1c2ba387fb7ae98e43) --- src/kernel/qlock.cpp | 1 + 1 file changed, 1 insertion(+) 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 #include #else +#define _WANT_SEMUN #include #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) \ || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_BSDI)