diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-08-02 21:22:56 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-08-02 21:22:56 -0400 |
commit | 4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b (patch) | |
tree | c9b95c1127ec2459c3065f186793373e08b1e39c /src/linux/reboot.c | |
parent | 4717bfec708d264111f70f37850ffc09238c4bd5 (diff) | |
download | musl-4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b.tar.gz |
fix stubbed-out reboot call
Diffstat (limited to 'src/linux/reboot.c')
-rw-r--r-- | src/linux/reboot.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <sys/reboot.h> -#include <errno.h> +#include "syscall.h" int reboot(int type) { - errno = ENOSYS; - return -1; + return syscall(SYS_reboot, type); } |