From: KO Myung-Hun Date: Sun, 8 Nov 2015 05:57:58 +0000 (+0900) Subject: test-lock: Do not include sched.h on kLIBC X-Git-Tag: v0.19.7~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f36b7429538be7bef50e93ec623308c7e079417;p=thirdparty%2Fgettext.git 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 --- 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) {