From 80831beee1c1db87b63e15efdcbcd0ed4354c62f Mon Sep 17 00:00:00 2001 From: Manuel Novoa III Date: Tue, 6 Mar 2001 15:25:28 +0000 Subject: Fix unified syscall stuff for changed ?stat. Move fork to syscalls.c wrapped with a check for NO_MMU of course. --- libc/sysdeps/linux/common/syscalls.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libc/sysdeps/linux/common/syscalls.c') diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c index 5c35cc679..56d9685d1 100644 --- a/libc/sysdeps/linux/common/syscalls.c +++ b/libc/sysdeps/linux/common/syscalls.c @@ -26,10 +26,6 @@ #include #include -#define uClibc_syscall_exit(void, _exit, int, status) \ -_syscall1(void, _exit, int, status) - - #include "unified_syscall.h" //#define __NR_exit 1 @@ -37,11 +33,16 @@ _syscall1(void, _exit, int, status) /* Do not include unistd.h, so gcc doesn't whine about * _exit returning. It really doesn't return... */ #define __NR__exit __NR_exit -uClibc_syscall_exit(void, _exit, int, status); +_syscall1(void, _exit, int, status); #endif //#define __NR_fork 2 -//See architecture specific implementation... +#ifdef L_fork +#ifndef __HAS_NO_MMU__ +#include +_syscall0(pid_t, fork); +#endif +#endif //#define __NR_read 3 #ifdef L_read -- cgit v1.2.3