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.
This commit is contained in:
Mike Barcroft 2002-10-03 06:27:50 +00:00
parent d5157cd692
commit 26371587bc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104398

View File

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