diff options
author | mike <mike@FreeBSD.org> | 2002-10-03 06:27:50 +0000 |
---|---|---|
committer | mike <mike@FreeBSD.org> | 2002-10-03 06:27:50 +0000 |
commit | 097ed50cd59d2fb3e467494e3b5227fa10dcda32 (patch) | |
tree | 4a91e0819836fc3e76525f37c9f35ff82dacc043 /sys/posix4 | |
parent | fb0cbb0771d9111d75166bd45ab2663dfc20ab7c (diff) | |
download | FreeBSD-src-097ed50cd59d2fb3e467494e3b5227fa10dcda32.zip FreeBSD-src-097ed50cd59d2fb3e467494e3b5227fa10dcda32.tar.gz |
Remove namespace pollution by not including <sys/types.h> and
<time.h>, instead provide a local typedef for pid_t and forward
declare struct timespec.
Diffstat (limited to 'sys/posix4')
-rw-r--r-- | sys/posix4/sched.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/posix4/sched.h b/sys/posix4/sched.h index b8b6bd2..92fad6d 100644 --- a/sys/posix4/sched.h +++ b/sys/posix4/sched.h @@ -38,10 +38,11 @@ #ifndef _SCHED_H_ #define _SCHED_H_ -#include <sys/types.h> /* For pid_t */ +#include <sys/_types.h> -#ifndef _KERNEL -#include <time.h> /* Per P1003.4 */ +#ifndef _PID_T_DECLARED +typedef __pid_t pid_t; +#define _PID_T_DECLARED #endif /* @@ -58,6 +59,8 @@ struct sched_param { #ifndef _KERNEL #include <sys/cdefs.h> +struct timespec; + __BEGIN_DECLS int sched_get_priority_max(int); int sched_get_priority_min(int); |