Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 571228 | Differences between
and this patch

Collapse All | Expand All

(-)openmp-5.0.1.src.orig/runtime/src/kmp_affinity.h (+14 lines)
Lines 195-200 Link Here
195
#error Wrong code for getaffinity system call.
195
#error Wrong code for getaffinity system call.
196
#endif /* __NR_sched_getaffinity */
196
#endif /* __NR_sched_getaffinity */
197
#elif KMP_ARCH_X86_64
197
#elif KMP_ARCH_X86_64
198
#if __ILP32__
199
#define __X32_SYSCALL_BIT 0x40000000
200
#ifndef __NR_sched_setaffinity
201
#define __NR_sched_setaffinity  (__X32_SYSCALL_BIT + 203)
202
#elif __NR_sched_setaffinity != (__X32_SYSCALL_BIT + 203)
203
#error Wrong code for setaffinity system call.
204
#endif /* __NR_sched_setaffinity */
205
#ifndef __NR_sched_getaffinity
206
#define __NR_sched_getaffinity  (__X32_SYSCALL_BIT + 204)
207
#elif __NR_sched_getaffinity != (__X32_SYSCALL_BIT + 204)
208
#error Wrong code for getaffinity system call.
209
#endif /* __NR_sched_getaffinity */
210
#else
198
#ifndef __NR_sched_setaffinity
211
#ifndef __NR_sched_setaffinity
199
#define __NR_sched_setaffinity 203
212
#define __NR_sched_setaffinity 203
200
#elif __NR_sched_setaffinity != 203
213
#elif __NR_sched_setaffinity != 203
Lines 205-210 Link Here
205
#elif __NR_sched_getaffinity != 204
218
#elif __NR_sched_getaffinity != 204
206
#error Wrong code for getaffinity system call.
219
#error Wrong code for getaffinity system call.
207
#endif /* __NR_sched_getaffinity */
220
#endif /* __NR_sched_getaffinity */
221
#endif
208
#elif KMP_ARCH_PPC64
222
#elif KMP_ARCH_PPC64
209
#ifndef __NR_sched_setaffinity
223
#ifndef __NR_sched_setaffinity
210
#define __NR_sched_setaffinity 222
224
#define __NR_sched_setaffinity 222

Return to bug 571228