summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/linux/reboot.c5
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);
}