From 59ce2f2ebf8eb60b34fec056d8e6ccc9ad5ef6f8 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 2 Sep 2010 03:59:40 +0200 Subject: Use __sched_param instead of sched_param to avoid exposing inclusion of and exposure of sched_param from * sysdeps/generic/bits/thread-attr.h: Define __need_schedparam and include instead of including (__pthread_attr): Use `__sched_param' instead of `sched_param'. --- sysdeps/generic/bits/thread-attr.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/generic/bits/thread-attr.h b/sysdeps/generic/bits/thread-attr.h index c3a93fde..f2e55f2b 100644 --- a/sysdeps/generic/bits/thread-attr.h +++ b/sysdeps/generic/bits/thread-attr.h @@ -20,7 +20,8 @@ #ifndef _BITS_THREAD_ATTR_H #define _BITS_THREAD_ATTR_H 1 -#include +#define __need_schedparam +#include 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; -- cgit v1.2.3