diff options
Diffstat (limited to 'libc/sysdeps/linux/powerpc/vfork.c')
-rw-r--r-- | libc/sysdeps/linux/powerpc/vfork.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/powerpc/vfork.c b/libc/sysdeps/linux/powerpc/vfork.c index fcf020804..750255be9 100644 --- a/libc/sysdeps/linux/powerpc/vfork.c +++ b/libc/sysdeps/linux/powerpc/vfork.c @@ -1,9 +1,14 @@ #include <unistd.h> -#include <sys/syscall.h> #include <sys/types.h> #include <errno.h> +#include <sys/syscall.h> +#define __syscall_clobbers \ + "r4", "r5", "r6", "r7", "r8", "r9", "r10", "r11", "r12" +#define __syscall_return(type) \ + return (__sc_err & 0x10000000 ? errno = __sc_ret, __sc_ret = -1 : 0), \ + (type) __sc_ret int vfork(void) { |