summaryrefslogtreecommitdiff
path: root/libpthread/sysdeps/generic/bits/thread-attr.h
diff options
context:
space:
mode:
Diffstat (limited to 'libpthread/sysdeps/generic/bits/thread-attr.h')
-rw-r--r--libpthread/sysdeps/generic/bits/thread-attr.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/libpthread/sysdeps/generic/bits/thread-attr.h b/libpthread/sysdeps/generic/bits/thread-attr.h
index c3a93fde..f2e55f2b 100644
--- a/libpthread/sysdeps/generic/bits/thread-attr.h
+++ b/libpthread/sysdeps/generic/bits/thread-attr.h
@@ -20,7 +20,8 @@
#ifndef _BITS_THREAD_ATTR_H
#define _BITS_THREAD_ATTR_H 1
-#include <sched.h>
+#define __need_schedparam
+#include <bits/sched.h>
enum __pthread_detachstate;
enum __pthread_inheritsched;
@@ -30,7 +31,7 @@ enum __pthread_contentionscope;
that not all of them are supported on all systems. */
struct __pthread_attr
{
- struct sched_param schedparam;
+ struct __sched_param schedparam;
void *stackaddr;
size_t stacksize;
size_t guardsize;