diff options
author | Khem Raj <raj.khem@gmail.com> | 2015-04-06 17:36:46 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-09 19:48:04 +0100 |
commit | 7dcd8f532fef71e711bf11a00f0e246a36b6138a (patch) | |
tree | e674e4a61e5d290cefc022d8e25388f108b2cd02 /meta/recipes-graphics/mesa/mesa/0001-PTHREAD_MUTEX_RECURSIVE_NP-is-specific-to-glibc.patch | |
parent | 5dc86b1a45581e2b6ae845b818e2323645c9cff4 (diff) | |
download | openembedded-core-contrib-7dcd8f532fef71e711bf11a00f0e246a36b6138a.tar.gz |
mesa: Fix building with musl
backport needed patches
add a patch to use _NP macros only on glibc
based linux and not on all linux
Change-Id: Ib43bec9d222856f8e7acb9f0143b406517f049c8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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.patch | 29 |
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 @@ +From 46cdd464efbada13478f5e39a50aef85599ff91b Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 4 Apr 2015 15:50:53 -0700 +Subject: [PATCH 1/2] PTHREAD_MUTEX_RECURSIVE_NP is specific to glibc + +use glibc guard around it + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +Upstream-Status: Pending +--- + include/c11/threads_posix.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h +index f9c165d..c641de4 100644 +--- a/include/c11/threads_posix.h ++++ b/include/c11/threads_posix.h +@@ -178,7 +178,7 @@ mtx_init(mtx_t *mtx, int type) + return thrd_error; + pthread_mutexattr_init(&attr); + if ((type & mtx_recursive) != 0) { +-#if defined(__linux__) || defined(__linux) ++#if defined __GLIBC__ && (defined(__linux__) || defined(__linux)) + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE_NP); + #else + pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE); +-- +2.1.4 + |