From: Rich Felker Date: Wed, 11 Jul 2012 15:34:46 +0000 (-0400) Subject: generic c version of __set_thread_area for archs where it works X-Git-Tag: v0.9.3~42 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d0bfbd9dca27e3053534bbf70b36e229d0c0cf21;p=oweals%2Fmusl.git generic c version of __set_thread_area for archs where it works on other archs, like x86[_64], asm version is required --- diff --git a/src/thread/__set_thread_area.c b/src/thread/__set_thread_area.c index 136be575..152a6a21 100644 --- a/src/thread/__set_thread_area.c +++ b/src/thread/__set_thread_area.c @@ -2,5 +2,9 @@ int __set_thread_area(void *p) { - return -1; +#ifdef SYS_set_thread_area + return __syscall(SYS_set_thread_area, p); +#else + return -ENOSYS; +#endif }