瀏覽代碼

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)
Rich Felker 11 年之前
父節點
當前提交
3555f146a5
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      src/sched/sched_yield.c

+ 1 - 4
src/sched/sched_yield.c

@@ -1,10 +1,7 @@
 #include <sched.h>
 #include <sched.h>
 #include "syscall.h"
 #include "syscall.h"
-#include "libc.h"
 
 
-int __yield()
+int sched_yield()
 {
 {
 	return syscall(SYS_sched_yield);
 	return syscall(SYS_sched_yield);
 }
 }
-
-weak_alias(__yield, sched_yield);