kLIBC does not have sched.h * gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC. --- gettext-runtime/tests/test-lock.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/gettext-runtime/tests/test-lock.c b/gettext-runtime/tests/test-lock.c index 0be81f2..ec5695c 100644 --- a/gettext-runtime/tests/test-lock.c +++ b/gettext-runtime/tests/test-lock.c @@ -81,7 +81,11 @@ #if TEST_POSIX_THREADS # include <pthread.h> -# include <sched.h> +# ifndef __KLIBC__ +# include <sched.h> +# else +# define sched_yield() pthread_yield() +# endif typedef pthread_t gl_thread_t; static inline gl_thread_t gl_thread_create (void * (*func) (void *), void *arg) { -- 2.6.0