meta-agl-profile-telematics: recipes-core: systemd: change canbus systemd match regex
[AGL/meta-agl.git] / meta-agl-profile-core / recipes-devtools / valgrind / valgrind / ppc-headers.patch
1 Backport a patch from upstream to fix test compilation for PPC where
2 system headers don't get included.
3
4 Upstream-Status: Backport
5 Signed-off-by: Ross Burton <ross.burton@intel.com>
6
7 r16450 | mjw | 2017-06-16 10:33:35 +0100 (Fri, 16 Jun 2017) | 7 lines
8
9 ppc64 doesn't compile test_isa_2_06_partx.c without VSX support
10
11 The #ifdef HAS_VSX guard is wrongly placed. It makes the standard
12 include headers not be used. Causing a build failure. Fix by moving
13 the #ifdef HAS_VSX after the standard includes.
14
15 Index: none/tests/ppc32/test_isa_2_06_part3.c
16 ===================================================================
17 --- a/none/tests/ppc32/test_isa_2_06_part3.c    (revision 16449)
18 +++ b/none/tests/ppc32/test_isa_2_06_part3.c    (revision 16450)
19 @@ -20,17 +20,18 @@
20   The GNU General Public License is contained in the file COPYING.
21   */
22  
23 -#ifdef HAS_VSX
24 -
25  #include <stdio.h>
26  #include <stdint.h>
27  #include <stdlib.h>
28  #include <string.h>
29  #include <malloc.h>
30 -#include <altivec.h>
31  #include <math.h>
32  #include <unistd.h>    // getopt
33  
34 +#ifdef HAS_VSX
35 +
36 +#include <altivec.h>
37 +
38  #ifndef __powerpc64__
39  typedef uint32_t HWord_t;
40  #else
41 Index: none/tests/ppc32/test_isa_2_06_part1.c
42 ===================================================================
43 --- a/none/tests/ppc32/test_isa_2_06_part1.c    (revision 16449)
44 +++ b/none/tests/ppc32/test_isa_2_06_part1.c    (revision 16450)
45 @@ -20,13 +20,14 @@
46   The GNU General Public License is contained in the file COPYING.
47   */
48  
49 -#ifdef HAS_VSX
50 -
51  #include <stdio.h>
52  #include <stdint.h>
53  #include <stdlib.h>
54  #include <string.h>
55  #include <malloc.h>
56 +
57 +#ifdef HAS_VSX
58 +
59  #include <altivec.h>
60  
61  #ifndef __powerpc64__
62 Index: none/tests/ppc32/test_isa_2_06_part2.c
63 ===================================================================
64 --- a/none/tests/ppc32/test_isa_2_06_part2.c    (revision 16449)
65 +++ b/none/tests/ppc32/test_isa_2_06_part2.c    (revision 16450)
66 @@ -20,17 +20,18 @@
67   The GNU General Public License is contained in the file COPYING.
68   */
69  
70 -#ifdef HAS_VSX
71 -
72  #include <stdio.h>
73  #include <stdint.h>
74  #include <stdlib.h>
75  #include <string.h>
76  #include <malloc.h>
77 -#include <altivec.h>
78  #include <math.h>
79  #include <unistd.h>    // getopt
80  
81 +#ifdef HAS_VSX
82 +
83 +#include <altivec.h>
84 +
85  #ifndef __powerpc64__
86  typedef uint32_t HWord_t;
87  #else