summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKO Myung-Hun <komh78@gmail.com>2015-11-08 14:57:58 +0900
committerDaiki Ueno <ueno@gnu.org>2015-12-10 12:43:21 +0900
commit8f36b7429538be7bef50e93ec623308c7e079417 (patch)
tree09e6b062236ef2159e3cd169f5cb6c7f3f30d23e
parent94bfe38f02c9f33fe1762ef320a6f6b8a9e24175 (diff)
downloadexternal_gettext-8f36b7429538be7bef50e93ec623308c7e079417.zip
external_gettext-8f36b7429538be7bef50e93ec623308c7e079417.tar.gz
external_gettext-8f36b7429538be7bef50e93ec623308c7e079417.tar.bz2
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
-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)
{