diff options
Diffstat (limited to 'meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch b/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch deleted file mode 100644 index efa6d060a0..0000000000 --- a/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch +++ /dev/null | |||
@@ -1,35 +0,0 @@ | |||
1 | From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001 | ||
2 | From: Dengke Du <dengke.du@windriver.com> | ||
3 | Date: Thu, 9 Feb 2017 15:54:53 +0800 | ||
4 | Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of | ||
5 | PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc | ||
6 | |||
7 | e.g. musl does not implement the _NP mutex types | ||
8 | |||
9 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
10 | Signed-off-by: Dengke Du <dengke.du@windriver.com> | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | --- | ||
14 | lib/tst_res.c | 4 ++++ | ||
15 | 1 file changed, 4 insertions(+) | ||
16 | |||
17 | diff --git a/lib/tst_res.c b/lib/tst_res.c | ||
18 | index 61daaeb..435224f 100644 | ||
19 | --- a/lib/tst_res.c | ||
20 | +++ b/lib/tst_res.c | ||
21 | @@ -79,7 +79,11 @@ int TEST_ERRNO; | ||
22 | assert(strlen(buf) > 0); \ | ||
23 | } while (0) | ||
24 | |||
25 | +#ifdef __GLIBC__ | ||
26 | static pthread_mutex_t tmutex = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP; | ||
27 | +#else | ||
28 | +static pthread_mutex_t tmutex = { PTHREAD_MUTEX_RECURSIVE }; | ||
29 | +#endif | ||
30 | |||
31 | static void check_env(void); | ||
32 | static void tst_condense(int tnum, int ttype, const char *tmesg); | ||
33 | -- | ||
34 | 2.7.4 | ||
35 | |||