diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch b/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch index d123074207..41f2623620 100644 --- a/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch +++ b/meta/recipes-extended/ltp/ltp/0008-Check-if-__GLIBC_PREREQ-is-defined-before-using-it.patch | |||
@@ -88,22 +88,19 @@ index c927512..921b107 100644 | |||
88 | 88 | ||
89 | void cleanup(void); | 89 | void cleanup(void); |
90 | void setup(void); | 90 | void setup(void); |
91 | @@ -164,9 +172,14 @@ static inline int getcpu(unsigned *cpu_id, unsigned *node_id, | 91 | @@ -164,7 +172,11 @@ static inline int getcpu(unsigned *cpu_id, unsigned *node_id, |
92 | { | 92 | { |
93 | #if defined(__i386__) | 93 | #if defined(__i386__) |
94 | return syscall(318, cpu_id, node_id, cache_struct); | 94 | return syscall(318, cpu_id, node_id, cache_struct); |
95 | -#elif __GLIBC_PREREQ(2,6) | 95 | -#elif __GLIBC_PREREQ(2,6) |
96 | +#if defined(__GLIBC__) | 96 | +#elif defined(__GLIBC__) |
97 | +#if __GLIBC_PREREQ(2,6) | 97 | +#if __GLIBC_PREREQ(2,6) |
98 | + *cpu_id = sched_getcpu(); | 98 | + *cpu_id = sched_getcpu(); |
99 | +#endif | 99 | +#endif |
100 | +#else | 100 | +#else |
101 | *cpu_id = sched_getcpu(); | 101 | *cpu_id = sched_getcpu(); |
102 | #endif | 102 | #endif |
103 | +#endif | ||
104 | return 0; | 103 | return 0; |
105 | } | ||
106 | |||
107 | @@ -191,15 +204,20 @@ unsigned int set_cpu_affinity(void) | 104 | @@ -191,15 +204,20 @@ unsigned int set_cpu_affinity(void) |
108 | cpu_set_t *set; | 105 | cpu_set_t *set; |
109 | size_t size; | 106 | size_t size; |