fix stubbed-out reboot call
authorRich Felker <dalias@aerifal.cx>
Wed, 3 Aug 2011 01:22:56 +0000 (21:22 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 3 Aug 2011 01:22:56 +0000 (21:22 -0400)
src/linux/reboot.c

index 68830d8e588e73192f6fb9de391bd0780abf2535..240dac5aee1c56817648c8881a2327e728da3724 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, type);
 }