summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/pthread.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-22 22:32:39 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-05-22 22:32:39 +0000
commitf4719d5aaf62852e0ff60d22c5261da05925bacf (patch)
tree745b2bf2bb27a5620e12ea8399055f3d71dcb04a /cpukit/posix/src/pthread.c
parentThese files have been modified in the initial pass at getting the portion (diff)
downloadrtems-f4719d5aaf62852e0ff60d22c5261da05925bacf.tar.bz2
These files have been modified in the initial pass at getting the portion
of the POSIX API necessary to support the GNAT runtime to initially compile. We now have verified that the specifications for the necessary routines are correct per the POSIX standards we have.
Diffstat (limited to 'cpukit/posix/src/pthread.c')
-rw-r--r--cpukit/posix/src/pthread.c5
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;
}