summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2011-08-02 21:22:56 -0400
committerRich Felker <dalias@aerifal.cx>2011-08-02 21:22:56 -0400
commit4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b (patch)
treec9b95c1127ec2459c3065f186793373e08b1e39c
parent4717bfec708d264111f70f37850ffc09238c4bd5 (diff)
downloadmusl-4f5ba9211e2b8e176ff9dfee3bdb0453cbc4d59b.tar.gz
fix stubbed-out reboot call
-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);
}