From 26371587bc10ce68ce18106db23f87cf6237524f Mon Sep 17 00:00:00 2001 From: Mike Barcroft Date: Thu, 3 Oct 2002 06:27:50 +0000 Subject: [PATCH] Remove namespace pollution by not including and , instead provide a local typedef for pid_t and forward declare struct timespec. --- sys/posix4/sched.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/posix4/sched.h b/sys/posix4/sched.h index b8b6bd2e8158..92fad6da914d 100644 --- a/sys/posix4/sched.h +++ b/sys/posix4/sched.h @@ -38,10 +38,11 @@ #ifndef _SCHED_H_ #define _SCHED_H_ -#include /* For pid_t */ +#include -#ifndef _KERNEL -#include /* 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 +struct timespec; + __BEGIN_DECLS int sched_get_priority_max(int); int sched_get_priority_min(int);