meta-agl-profile-telematics: recipes-core: systemd: change canbus systemd match regex
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / valgrind / valgrind / 0004-pth_atfork1.c-Define-error-API-for-musl.patch
1 From fb77fef4f866dac7bcc6d1ae025da60564869f84 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 10 Jun 2017 01:06:11 -0700
4 Subject: [PATCH 4/6] pth_atfork1.c: Define error() API for musl
5
6 Upstream-Status: Pending
7
8 Signed-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
13 diff --git a/none/tests/pth_atfork1.c b/none/tests/pth_atfork1.c
14 index 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 -- 
36 2.13.1
37