summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch')
-rw-r--r--meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch37
1 files changed, 0 insertions, 37 deletions
diff --git a/meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch b/meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch
deleted file mode 100644
index 1cb7062545..0000000000
--- a/meta/recipes-devtools/valgrind/valgrind/0004-pth_atfork1.c-Define-error-API-for-musl.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From fb77fef4f866dac7bcc6d1ae025da60564869f84 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 10 Jun 2017 01:06:11 -0700
4Subject: [PATCH 4/6] pth_atfork1.c: Define error() API for musl
5
6Upstream-Status: Pending
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 none/tests/pth_atfork1.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/none/tests/pth_atfork1.c b/none/tests/pth_atfork1.c
14index 34201ef..b7f5f2d 100644
15--- a/none/tests/pth_atfork1.c
16+++ b/none/tests/pth_atfork1.c
17@@ -18,7 +18,7 @@
18 Boston, MA 02111-1307, USA. */
19
20 #include <errno.h>
21-#if !defined(__APPLE__) && !defined(__sun)
22+#if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__)
23 # include <error.h>
24 #endif
25 #include <stdlib.h>
26@@ -27,7 +27,7 @@
27 #include <sys/wait.h>
28 #include <stdio.h>
29
30-#if defined(__APPLE__) || defined(__sun)
31+#if defined(__APPLE__) || defined(__sun) || (defined(__linux__) && !defined(__GLIBC__))
32 #include <string.h> /* strerror */
33 static void error (int status, int errnum, char* msg)
34 {
35--
362.13.1
37