summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gettext-runtime/tests/test-lock.c6
1 files changed, 5 insertions, 1 deletions
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)
{