summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-05-04 13:15:27 -0400
committerRich Felker <dalias@aerifal.cx>2014-05-20 17:58:24 -0400
commit3555f146a58789fe9c415f6cf396097e709deef9 (patch)
tree43512e3a3c423f156ceb12d9e628a0dcf1b88084
parentd7389f0175b2c2379d93b186e9913fb89ea47633 (diff)
downloadmusl-3555f146a58789fe9c415f6cf396097e709deef9.tar.gz
remove useless __yield alias for sched_yield
this is no longer used for anything, and reportedly clashed with a builtin on certain compilers. (cherry picked from commit adbf0258be4eea5f012e173de7e55a87f3093669)
-rw-r--r--src/sched/sched_yield.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/sched/sched_yield.c b/src/sched/sched_yield.c
index 6c0742b4..ee6f0e7f 100644
--- a/src/sched/sched_yield.c
+++ b/src/sched/sched_yield.c
@@ -1,10 +1,7 @@
#include <sched.h>
#include "syscall.h"
-#include "libc.h"
-int __yield()
+int sched_yield()
{
return syscall(SYS_sched_yield);
}
-
-weak_alias(__yield, sched_yield);