diff --git a/openmp/runtime/src/kmp_affinity.h b/openmp/runtime/src/kmp_affinity.h index 9ab2c0cc70d8..dc3191caae63 100644 --- a/openmp/runtime/src/kmp_affinity.h +++ b/openmp/runtime/src/kmp_affinity.h @@ -311,6 +311,17 @@ public: #elif __NR_sched_getaffinity != 240 #error Wrong code for getaffinity system call. #endif /* __NR_sched_getaffinity */ +#elif KMP_ARCH_SPARC +#ifndef __NR_sched_setaffinity +#define __NR_sched_setaffinity 261 +#elif __NR_sched_setaffinity != 261 +#error Wrong code for setaffinity system call. +#endif /* __NR_sched_setaffinity */ +#ifndef __NR_sched_getaffinity +#define __NR_sched_getaffinity 260 +#elif __NR_sched_getaffinity != 260 +#error Wrong code for getaffinity system call. +#endif /* __NR_sched_getaffinity */ #else #error Unknown or unsupported architecture #endif /* KMP_ARCH_* */