diff options
Diffstat (limited to 'posix')
-rw-r--r-- | posix/sched.h | 9 | ||||
-rw-r--r-- | posix/sys/times.h | 4 | ||||
-rw-r--r-- | posix/sys/types.h | 9 |
3 files changed, 10 insertions, 12 deletions
diff --git a/posix/sched.h b/posix/sched.h index 253c963053..5b431c64bf 100644 --- a/posix/sched.h +++ b/posix/sched.h @@ -25,13 +25,14 @@ #include <bits/types.h> #define __need_size_t +#define __need_NULL #include <stddef.h> -#ifdef __USE_XOPEN2K -# define __need_time_t -# define __need_timespec +#include <bits/types/time_t.h> +#include <bits/types/struct_timespec.h> +#ifndef __USE_XOPEN2K +# include <time.h> #endif -#include <time.h> #ifndef __pid_t_defined typedef __pid_t pid_t; diff --git a/posix/sys/times.h b/posix/sys/times.h index a877d1490d..c7308d2617 100644 --- a/posix/sys/times.h +++ b/posix/sys/times.h @@ -24,9 +24,7 @@ #include <features.h> -#define __need_clock_t -#include <time.h> - +#include <bits/types/clock_t.h> __BEGIN_DECLS diff --git a/posix/sys/types.h b/posix/sys/types.h index 83dadcdd05..386f3e5703 100644 --- a/posix/sys/types.h +++ b/posix/sys/types.h @@ -124,12 +124,11 @@ typedef __key_t key_t; #endif #if defined __USE_XOPEN || defined __USE_XOPEN2K8 -# define __need_clock_t +# include <bits/types/clock_t.h> #endif -#define __need_time_t -#define __need_timer_t -#define __need_clockid_t -#include <time.h> +#include <bits/types/clockid_t.h> +#include <bits/types/time_t.h> +#include <bits/types/timer_t.h> #ifdef __USE_XOPEN # ifndef __useconds_t_defined |