meta-agl-profile-telematics: recipes-core: systemd: change canbus systemd match regex
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / valgrind / valgrind / 0001-str_tester.c-Limit-rawmemchr-test-to-glibc.patch
1 From de692e359801a1f0488c76267e4f904dd2efe754 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 10 Jun 2017 00:39:07 -0700
4 Subject: [PATCH] str_tester.c: Limit rawmemchr() test to glibc
5
6 rawmemchr() is a GNU extention therefore mark it so
7
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 ---
10 Upstream-Status: Pending
11
12  memcheck/tests/str_tester.c | 4 ++--
13  1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/memcheck/tests/str_tester.c b/memcheck/tests/str_tester.c
16 index 9f7790a..47e4b4a 100644
17 --- a/memcheck/tests/str_tester.c
18 +++ b/memcheck/tests/str_tester.c
19 @@ -504,7 +504,7 @@ test_strchrnul (void)
20  #endif
21  
22  // DDD: better done by testing for the function.
23 -#if !defined(__APPLE__) && !defined(__sun)
24 +#if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__)
25  static void
26  test_rawmemchr (void)
27  {
28 @@ -1442,7 +1442,7 @@ main (void)
29    test_strchrnul ();
30  # endif
31  
32 -# if !defined(__APPLE__) && !defined(__sun)
33 +# if !defined(__APPLE__) && !defined(__sun) && defined(__GLIBC__)
34    /* rawmemchr.  */
35    test_rawmemchr ();
36  # endif
37 -- 
38 2.13.1
39