diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-04-19 20:21:33 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-04-19 20:24:36 +0200 |
commit | e60c3f2bb71210ca62dc09b1b797443a88b4e3cf (patch) | |
tree | 50147302128a6f8518d75321079f311e39bd61f9 /sysdeps | |
parent | 50511ca46641eb76aef1ca3fd96ad1e97f95c199 (diff) | |
download | glibc-e60c3f2bb71210ca62dc09b1b797443a88b4e3cf.zip glibc-e60c3f2bb71210ca62dc09b1b797443a88b4e3cf.tar.gz glibc-e60c3f2bb71210ca62dc09b1b797443a88b4e3cf.tar.bz2 |
hurd: Avoid exposing all <sched.h> symbols from sys/types.h
* bits/sched.h: Include <bits/types/struct_sched_param.h> and move struct
sched_param definition to it.
* sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
* bits/types/struct_sched_param.h: New file.
* sysdeps/htl/bits/types/struct___pthread_attr.h: Include
<bits/types/struct_sched_param.h> instead of <sched.h>.
* posix/Makefile (headers): Add bits/types/struct_sched_param.h.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/htl/bits/types/struct___pthread_attr.h | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/sched.h | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sysdeps/htl/bits/types/struct___pthread_attr.h b/sysdeps/htl/bits/types/struct___pthread_attr.h index 2299c01..3c78291 100644 --- a/sysdeps/htl/bits/types/struct___pthread_attr.h +++ b/sysdeps/htl/bits/types/struct___pthread_attr.h @@ -19,7 +19,7 @@ #ifndef _BITS_TYPES_STRUCT___PTHREAD_ATTR #define _BITS_TYPES_STRUCT___PTHREAD_ATTR 1 -#include <sched.h> +#include <bits/types/struct_sched_param.h> #define __need_size_t #include <stddef.h> diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index 24159c5..34f27a7 100644 --- a/sysdeps/unix/sysv/linux/bits/sched.h +++ b/sysdeps/unix/sysv/linux/bits/sched.h @@ -71,11 +71,7 @@ # define CLONE_IO 0x80000000 /* Clone I/O context. */ #endif -/* Data structure to describe a process' schedulability. */ -struct sched_param -{ - int sched_priority; -}; +#include <bits/types/struct_sched_param.h> __BEGIN_DECLS |