summaryrefslogtreecommitdiffstats
path: root/cpukit/posix
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-03 17:02:40 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-04-03 17:02:40 -0500
commit69d7279bd57b45e274a8c1aee39d58e746a1182c (patch)
tree9b01aa7be11e53554099b27e3368dce14ab48c8f /cpukit/posix
parentleon2 ckinit.c, console.c: Comment clean up (diff)
downloadrtems-69d7279bd57b45e274a8c1aee39d58e746a1182c.tar.bz2
pthreadimpl.h: Conditionalize thread affinity copying
Diffstat (limited to 'cpukit/posix')
-rw-r--r--cpukit/posix/include/rtems/posix/pthreadimpl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpukit/posix/include/rtems/posix/pthreadimpl.h b/cpukit/posix/include/rtems/posix/pthreadimpl.h
index d4a04e1281..af5ddab6ce 100644
--- a/cpukit/posix/include/rtems/posix/pthreadimpl.h
+++ b/cpukit/posix/include/rtems/posix/pthreadimpl.h
@@ -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)
);