fix broken reboot wrapper (syscall needs extra silly magic arguments...)
[musl] / src / linux / reboot.c
index 68830d8..7f12af7 100644 (file)
@@ -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, 0xfee1dead, 672274793, type);
 }