From: Rich Felker Date: Wed, 3 Aug 2011 01:22:56 +0000 (-0400) Subject: fix stubbed-out reboot call X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=commitdiff_plain;h=4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b fix stubbed-out reboot call --- diff --git a/src/linux/reboot.c b/src/linux/reboot.c index 68830d8e..240dac5a 100644 --- a/src/linux/reboot.c +++ b/src/linux/reboot.c @@ -1,8 +1,7 @@ #include -#include +#include "syscall.h" int reboot(int type) { - errno = ENOSYS; - return -1; + return syscall(SYS_reboot, type); }