From 4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 2 Aug 2011 21:22:56 -0400 Subject: [PATCH] fix stubbed-out reboot call --- src/linux/reboot.c | 5 ++--- 1 file 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 -#include +#include "syscall.h" int reboot(int type) { - errno = ENOSYS; - return -1; + return syscall(SYS_reboot, type); } -- 2.20.1