diff options
Diffstat (limited to 'cpukit/posix/src/pthreadattrdefault.c')
-rw-r--r-- | cpukit/posix/src/pthreadattrdefault.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthreadattrdefault.c b/cpukit/posix/src/pthreadattrdefault.c index efd6671fe6..ca3c2c11d2 100644 --- a/cpukit/posix/src/pthreadattrdefault.c +++ b/cpukit/posix/src/pthreadattrdefault.c @@ -54,7 +54,9 @@ const pthread_attr_t _POSIX_Threads_Default_attributes = { .detachstate = PTHREAD_CREATE_JOINABLE, /* detachstate */ .affinitysetsize = sizeof( _POSIX_Threads_Default_attributes.affinitysetpreallocated ), - .affinityset = - &_POSIX_Threads_Default_attributes.affinitysetpreallocated, + .affinityset = RTEMS_DECONST( + cpu_set_t *, + &_POSIX_Threads_Default_attributes.affinitysetpreallocated + ), .affinitysetpreallocated = { { -1L } } }; |