浏览代码

fix stubbed-out reboot call

Rich Felker 13 年之前
父节点
当前提交
4f5ba9211e
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2 3
      src/linux/reboot.c

+ 2 - 3
src/linux/reboot.c

@@ -1,8 +1,7 @@
 #include <sys/reboot.h>
 #include <sys/reboot.h>
-#include <errno.h>
+#include "syscall.h"
 
 
 int reboot(int type)
 int reboot(int type)
 {
 {
-	errno = ENOSYS;
-	return -1;
+	return syscall(SYS_reboot, type);
 }
 }