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-sigqueue-Rename-_sifields-to-__si_fields-on-musl.patch
1 From 64ad2744acfb4fa40b1c114633a053f87125a203 Mon Sep 17 00:00:00 2001
2 From: Khem Raj <raj.khem@gmail.com>
3 Date: Sat, 10 Jun 2017 00:46:39 -0700
4 Subject: [PATCH 1/6] sigqueue: Rename _sifields to __si_fields on musl
5
6 Upstream-Status: Pending
7
8 Signed-off-by: Khem Raj <raj.khem@gmail.com>
9 ---
10  memcheck/tests/linux/sigqueue.c | 5 +++++
11  1 file changed, 5 insertions(+)
12
13 diff --git a/memcheck/tests/linux/sigqueue.c b/memcheck/tests/linux/sigqueue.c
14 index d18bd72..acb7cba 100644
15 --- a/memcheck/tests/linux/sigqueue.c
16 +++ b/memcheck/tests/linux/sigqueue.c
17 @@ -8,6 +8,11 @@
18  #include <syscall.h>
19  #include <unistd.h>
20  
21 +/* musl libc defines siginfo_t __si_fields instead of _sifields */
22 +#if defined(__linux__) && !defined(__GLIBC__)
23 +#define _sifields __si_fields
24 +#endif
25 +
26  int main(int argc, char **argv)
27  {
28    siginfo_t *si;
29 -- 
30 2.13.1
31