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/init.c | |
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/init.c')
-rw-r--r-- | mdk-stage1/init.c | 5 |
1 files changed, 3 insertions, 2 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 |