about summary refs log tree commit diff
path: root/posix/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'posix/sched.h')
-rw-r--r--posix/sched.h9
1 files changed, 5 insertions, 4 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;