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>
pull/8/head
Slávek Banko 5 years ago
parent 4e83f4f200
commit b7be699a09
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

@ -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)

Loading…
Cancel
Save