[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-gettext] [PATCH 2/8] test-lock: Do not include sched.h on kLIBC
From: |
KO Myung-Hun |
Subject: |
[bug-gettext] [PATCH 2/8] test-lock: Do not include sched.h on kLIBC |
Date: |
Sun, 8 Nov 2015 14:57:58 +0900 |
kLIBC does not have sched.h
* gettext-runtime/tests/test-lock.c: Do not include sched.h on kLIBC.
---
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 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)
{
--
2.6.0
- [bug-gettext] [PATCH] OS/2 patches, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 1/8] moop: Replace CR as well as NL with a space, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 2/8] test-lock: Do not include sched.h on kLIBC,
KO Myung-Hun <=
- [bug-gettext] [PATCH 4/8] gettext-runtime: Fix name resolution failures on kLIBC, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 3/8] build: Do not include os2compat.[ch], KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 6/8] libasprintf: Build a shared library on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 7/8] gettext-tools: Use a short name for DLLs on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 8/8] xgettext, cldr-plurals: Fix linkage on OS/2, KO Myung-Hun, 2015/11/08
- [bug-gettext] [PATCH 5/8] intl: Support UNIXROOT in BINDTEXTDOMAIN () on EMX, KO Myung-Hun, 2015/11/08
- Re: [bug-gettext] [PATCH] OS/2 patches, Daiki Ueno, 2015/11/17