Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/linuxthreads/manager.c')
-rw-r--r--newlib/libc/sys/linux/linuxthreads/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/sys/linux/linuxthreads/manager.c b/newlib/libc/sys/linux/linuxthreads/manager.c
index 7729903cf..492b95680 100644
--- a/newlib/libc/sys/linux/linuxthreads/manager.c
+++ b/newlib/libc/sys/linux/linuxthreads/manager.c
@@ -15,6 +15,7 @@
/* The "thread manager" thread: manages creation and termination of threads */
#include <errno.h>
+#define __USE_MISC
#include <sched.h>
#include <stddef.h>
#include <stdio.h>
@@ -594,7 +595,7 @@ static int pthread_handle_create(pthread_t *thread, const pthread_attr_t *attr,
break;
}
new_thread->p_priority =
- new_thread->p_start_args.schedparam.sched_priority;
+ new_thread->p_start_args.schedparam.__sched_priority;
}
/* Finish setting up arguments to pthread_start_thread */
new_thread->p_start_args.start_routine = start_routine;