pthreadimpl.h: Conditionalize thread affinity copying

This commit is contained in:
Joel Sherrill
2014-04-03 17:02:40 -05:00
parent aa7ff5d3f9
commit 69d7279bd5

View File

@@ -221,7 +221,7 @@ RTEMS_INLINE_ROUTINE void _POSIX_Threads_Copy_attributes(
)
{
*dst_attr = *src_attr;
#if defined(__RTEMS_HAVE_SYS_CPUSET_H__)
#if defined(RTEMS_SMP) && defined(__RTEMS_HAVE_SYS_CPUSET_H__)
_Assert(
dst_attr->affinitysetsize == sizeof(dst_attr->affinitysetpreallocated)
);