Module: xenomai-3 Branch: stable-3.0.x Commit: 0b5bb07cd8ca264638b041f15170357337c60b7c URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=0b5bb07cd8ca264638b041f15170357337c60b7c
Author: Philippe Gerum <r...@xenomai.org> Date: Sat Apr 15 12:47:54 2017 +0200 boilerplate: decouple pthread_setaffinity_np(), pthread_attr_setaffinity_np() placeholders --- include/boilerplate/libc.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boilerplate/libc.h b/include/boilerplate/libc.h index d8b0334..134176e 100644 --- a/include/boilerplate/libc.h +++ b/include/boilerplate/libc.h @@ -118,7 +118,9 @@ int pthread_attr_setaffinity_np(pthread_attr_t *attr, return 0; return ENOSYS; } +#endif /* !HAVE_PTHREAD_ATTR_SETAFFINITY_NP */ +#ifndef HAVE_PTHREAD_SETAFFINITY_NP static inline int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, const cpu_set_t *cpuset) @@ -127,8 +129,7 @@ int pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, return 0; return ENOSYS; } - -#endif /* !HAVE_PTHREAD_ATTR_SETAFFINITY_NP */ +#endif /* !HAVE_PTHREAD_SETAFFINITY_NP */ #if !defined(HAVE_CLOCK_NANOSLEEP) && defined(CONFIG_XENO_MERCURY) /* _______________________________________________ Xenomai-git mailing list Xenomai-git@xenomai.org https://xenomai.org/mailman/listinfo/xenomai-git