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/unix/sysv/linux/bits | |
parent | 50511ca46641eb76aef1ca3fd96ad1e97f95c199 (diff) | |
download | glibc-e60c3f2bb71210ca62dc09b1b797443a88b4e3cf.tar.gz |
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/unix/sysv/linux/bits')
-rw-r--r-- | sysdeps/unix/sysv/linux/bits/sched.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/bits/sched.h b/sysdeps/unix/sysv/linux/bits/sched.h index 24159c57b3..34f27a7d9b 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 |