1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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.
This commit is contained in:
Samuel Thibault
2018-04-19 20:21:33 +02:00
parent 50511ca466
commit e60c3f2bb7
6 changed files with 39 additions and 12 deletions

View File

@ -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