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 ee61bf8d1a)
v3.5.13-sru
Slávek Banko 6 years ago
parent 80d5792c61
commit d85c2df3c7
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -47,6 +47,7 @@
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/file.h> #include <sys/file.h>
#else #else
#define _WANT_SEMUN
#include <sys/sem.h> #include <sys/sem.h>
#if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) \ #if defined(__GNU_LIBRARY__) && !defined(_SEM_SEMUN_UNDEFINED) \
|| defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_BSDI) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD) || defined(Q_OS_NETBSD) || defined(Q_OS_BSDI)

Loading…
Cancel
Save