diff options
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r-- | cpukit/posix/src/pthread.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/posix/src/pthread.c b/cpukit/posix/src/pthread.c index 7247586685..79ea3271d2 100644 --- a/cpukit/posix/src/pthread.c +++ b/cpukit/posix/src/pthread.c @@ -7,6 +7,7 @@ #include <pthread.h> #include <limits.h> +#include <rtems/system.h> #include <rtems/score/stack.h> #include <rtems/score/thread.h> #include <rtems/posix/pthread.h> @@ -188,13 +189,13 @@ int pthread_attr_getschedpolicy( int pthread_attr_setschedparam( pthread_attr_t *attr, - const struct sched_param param + const struct sched_param *param ) { if ( !attr || !attr->is_initialized ) return EINVAL; - attr->schedparam = param; + attr->schedparam = *param; return 0; } |