diff options
Diffstat (limited to 'libc/include/sched.h')
-rw-r--r-- | libc/include/sched.h | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libc/include/sched.h b/libc/include/sched.h index e43b6cc..930dd7c 100644 --- a/libc/include/sched.h +++ b/libc/include/sched.h @@ -28,10 +28,9 @@ #ifndef _SCHED_H_ #define _SCHED_H_ -#include <sys/cdefs.h> -#include <sys/time.h> - #include <linux/sched.h> +#include <machine/timespec.h> +#include <sys/cdefs.h> __BEGIN_DECLS @@ -39,9 +38,8 @@ __BEGIN_DECLS #define SCHED_OTHER SCHED_NORMAL struct sched_param { - int __sched_priority; + int sched_priority; }; -#define sched_priority __sched_priority extern int sched_setscheduler(pid_t, int, const struct sched_param*); extern int sched_getscheduler(pid_t); @@ -52,7 +50,7 @@ extern int sched_setparam(pid_t, const struct sched_param*); extern int sched_getparam(pid_t, struct sched_param*); extern int sched_rr_get_interval(pid_t, struct timespec*); -#ifdef _GNU_SOURCE +#if defined(__USE_GNU) extern int clone(int (*)(void*), void*, int, void*, ...); extern int unshare(int); @@ -146,7 +144,7 @@ extern void __sched_cpufree(cpu_set_t* set); extern int __sched_cpucount(size_t setsize, cpu_set_t* set); -#endif /* _GNU_SOURCE */ +#endif /* __USE_GNU */ __END_DECLS |