Sfoglia il codice sorgente

fix stubbed-out reboot call

Rich Felker 13 anni fa
parent
commit
4f5ba9211e
1 ha cambiato i file con 2 aggiunte e 3 eliminazioni
  1. 2 3
      src/linux/reboot.c

+ 2 - 3
src/linux/reboot.c

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