remove useless __yield alias for sched_yield
authorRich Felker <dalias@aerifal.cx>
Sun, 4 May 2014 17:15:27 +0000 (13:15 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 4 May 2014 17:15:27 +0000 (13:15 -0400)
this is no longer used for anything, and reportedly clashed with a
builtin on certain compilers.

src/sched/sched_yield.c

index 6c0742b4ec0c0e00da44b5db1d19220f97baacaa..ee6f0e7f160410c765146fd5713adcd9909627c1 100644 (file)
@@ -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);