mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-12-13 21:47:44 +00:00
Code to avoid issues was pre-existing but not enabled on Linux. Affected 0.8 and 2.3 slots, >=4.0 is no longer using this function. Closes: https://bugs.gentoo.org/808707 Closes: https://bugs.gentoo.org/811591 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
17 lines
612 B
Diff
17 lines
612 B
Diff
pthread_mutexattr_setkind_np() is long deprecated and should be using
|
|
pthread_mutexattr_settype() instead even on Linux. Fixes consumers
|
|
when built against glibc-2.34.
|
|
|
|
https://bugs.gentoo.org/811591
|
|
--- a/Sources/Core/System/mutex.cpp
|
|
+++ b/Sources/Core/System/mutex.cpp
|
|
@@ -37,3 +37,3 @@
|
|
{
|
|
-#if defined(__APPLE__) || defined (__FreeBSD__) || defined(__OpenBSD__)
|
|
+#if 1
|
|
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind);
|
|
@@ -55,3 +55,3 @@
|
|
pthread_mutexattr_init(&attr);
|
|
- #if defined(__FreeBSD__) || defined(__APPLE__)
|
|
+ #if 1
|
|
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
|