summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/init.c5
-rw-r--r--mdk-stage1/rescue-gui.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c
index c053a84d2..3a815a328 100644
--- a/mdk-stage1/init.c
+++ b/mdk-stage1/init.c
@@ -38,8 +38,9 @@
#include <sys/select.h>
#include <sys/ioctl.h>
-static inline _syscall3(int, syslog, int, type, char *, bufp, int, len);
-static inline _syscall3(int, reboot, int, magic, int, magic2, int, flag);
+#include <sys/syscall.h>
+#define syslog(...) syscall(__NR_syslog, __VA_ARGS__)
+#define reboot(...) syscall(__NR_reboot, __VA_ARGS__)
#else
#include INIT_HEADERS
#endif
diff --git a/mdk-stage1/rescue-gui.c b/mdk-stage1/rescue-gui.c
index c09339ed7..189798285 100644
--- a/mdk-stage1/rescue-gui.c
+++ b/mdk-stage1/rescue-gui.c
@@ -33,6 +33,9 @@
#include "utils.h"
#include "params.h"
+#include <sys/syscall.h>
+#define reboot(...) syscall(__NR_reboot, __VA_ARGS__)
+
#if defined(__i386__) || defined(__x86_64__)
#define ENABLE_RESCUE_MS_BOOT 1
#endif
@@ -66,7 +69,6 @@ void fatal_error(char *msg)
while (1);
}
-static inline _syscall3(int, reboot, int, magic, int, magic2, int, flag);
#define LOOP_CLR_FD 0x4C01
void del_loop(char *device)
{