From 8f36b7429538be7bef50e93ec623308c7e079417 Mon Sep 17 00:00:00 2001 From: KO Myung-Hun Date: Sun, 8 Nov 2015 14:57:58 +0900 Subject: test-lock: Do not include sched.h on kLIBC * gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC, since kLIBC does not have sched.h. Copyright-paperwork-exempt: yes --- 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 0be81f226..ec5695c15 100644 --- a/gettext-runtime/tests/test-lock.c +++ b/gettext-runtime/tests/test-lock.c @@ -81,7 +81,11 @@ #if TEST_POSIX_THREADS # include -# include +# ifndef __KLIBC__ +# include +# 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) { -- cgit v1.2.1