summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch')
-rw-r--r--meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch b/meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch
new file mode 100644
index 0000000000..52443d8422
--- /dev/null
+++ b/meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch
@@ -0,0 +1,29 @@
1From 46cdd464efbada13478f5e39a50aef85599ff91b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 4 Apr 2015 15:50:53 -0700
4Subject: [PATCH 1/2] PTHREAD_MUTEX_RECURSIVE_NP is specific to glibc
5
6use glibc guard around it
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9Upstream-Status: Pending
10---
11 include/c11/threads_posix.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
15index f9c165d..c641de4 100644
16--- a/include/c11/threads_posix.h
17+++ b/include/c11/threads_posix.h
18@@ -178,7 +178,7 @@ mtx_init(mtx_t *mtx, int type)
19 return thrd_error;
20 pthread_mutexattr_init(&attr);
21 if ((type & mtx_recursive) != 0) {
22-#if defined(__linux__) || defined(__linux)
23+#if defined __GLIBC__ && (defined(__linux__) || defined(__linux))
24 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP);
25 #else
26 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
27--
282.1.4
29