diff options
author | Olivier Blin <oblin@mandriva.com> | 2007-07-17 13:48:41 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2007-07-17 13:48:41 +0000 |
commit | 28c1654615d322517d21f3e894c26be3ce9abbf9 (patch) | |
tree | 5807832becbc623cc339d17b421f1ae074359a29 /mdk-stage1 | |
parent | 2566cec8a6ee0aadc9597a78dfc8f56f397289ab (diff) | |
download | drakx-28c1654615d322517d21f3e894c26be3ce9abbf9.tar drakx-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.gz drakx-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.bz2 drakx-28c1654615d322517d21f3e894c26be3ce9abbf9.tar.xz drakx-28c1654615d322517d21f3e894c26be3ce9abbf9.zip |
do not use _syscallX macros(), they are not available anymore, use syscall() function instead
Diffstat (limited to 'mdk-stage1')
-rw-r--r-- | mdk-stage1/init.c | 5 | ||||
-rw-r--r-- | mdk-stage1/rescue-gui.c | 4 |
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) { |