]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
test-lock: Do not include sched.h on kLIBC
authorKO Myung-Hun <komh78@gmail.com>
Sun, 8 Nov 2015 05:57:58 +0000 (14:57 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 10 Dec 2015 03:43:21 +0000 (12:43 +0900)
* 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

index 0be81f226f300c3ae5aa8ada8a5e1502300af8a1..ec5695c15b31acc848b63fd34a18deef4e61d410 100644 (file)
 
 #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)
 {