summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-07-11 11:34:46 -0400
committerRich Felker <dalias@aerifal.cx>2012-07-11 11:34:46 -0400
commitd0bfbd9dca27e3053534bbf70b36e229d0c0cf21 (patch)
treeae0a6faf7b78e50583dd0516e18be3dfe3c1e1a1 /src
parent6315004f6102dca44c4ba50654a36967b8b9c2a6 (diff)
downloadmusl-d0bfbd9dca27e3053534bbf70b36e229d0c0cf21.tar.gz
generic c version of __set_thread_area for archs where it works
on other archs, like x86[_64], asm version is required
Diffstat (limited to 'src')
-rw-r--r--src/thread/__set_thread_area.c6
1 files changed, 5 insertions, 1 deletions
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
}