summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/ltp/ltp/0030-lib-Use-PTHREAD_MUTEX_RECURSIVE-in-place-of-PTHREAD_.patch
diff options
context:
space:
mode:
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_.patch35
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 @@
1From 00ba7cdd0608b1507027428f9f87b1cb9747372b Mon Sep 17 00:00:00 2001
2From: Dengke Du <dengke.du@windriver.com>
3Date: Thu, 9 Feb 2017 15:54:53 +0800
4Subject: [PATCH] lib: Use PTHREAD_MUTEX_RECURSIVE in place of
5 PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP for non-glibc
6
7e.g. musl does not implement the _NP mutex types
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10Signed-off-by: Dengke Du <dengke.du@windriver.com>
11
12Upstream-Status: Pending
13---
14 lib/tst_res.c | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/lib/tst_res.c b/lib/tst_res.c
18index 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--
342.7.4
35