summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/rescue-gui.c
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-07-17 13:48:41 +0000
committerOlivier Blin <oblin@mandriva.com>2007-07-17 13:48:41 +0000
commit28c1654615d322517d21f3e894c26be3ce9abbf9 (patch)
tree5807832becbc623cc339d17b421f1ae074359a29 /mdk-stage1/rescue-gui.c
parent2566cec8a6ee0aadc9597a78dfc8f56f397289ab (diff)
downloaddrakx-backup-do-not-use-28c1654615d322517d21f3e894c26be3ce9abbf9.tar
drakx-backup-do-not-use-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.gz
drakx-backup-do-not-use-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.bz2
drakx-backup-do-not-use-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.xz
drakx-backup-do-not-use-28c1654615d322517d21f3e894c26be3ce9abbf9.zip
do not use _syscallX macros(), they are not available anymore, use syscall() function instead
Diffstat (limited to 'mdk-stage1/rescue-gui.c')
-rw-r--r--mdk-stage1/rescue-gui.c4
1 files changed, 3 insertions, 1 deletions
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)
{