diff options
author | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:13:20 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2010-07-26 21:13:20 -0400 |
commit | 7f136d048bf25d4f97bb90c294979a22d0efc5d8 (patch) | |
tree | cd45d274c385236c6bb793d919d319c7f4f598b6 | |
parent | fb599a12a30598f13e50f63fbc0db8919678bbc3 (diff) |
nommu: fix building of fork.c when stubs are disabled
We scrub the fork() prototype for nommu/no stubs, so attempting to get
its type isn't going to work.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | libc/sysdeps/linux/common/fork.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/fork.c b/libc/sysdeps/linux/common/fork.c index 2e730064f..f21ec35b8 100644 --- a/libc/sysdeps/linux/common/fork.c +++ b/libc/sysdeps/linux/common/fork.c @@ -10,11 +10,11 @@ #include <sys/syscall.h> #include <unistd.h> -extern __typeof(fork) __libc_fork; #ifdef __ARCH_USE_MMU__ #ifdef __NR_fork #define __NR___libc_fork __NR_fork +extern __typeof(fork) __libc_fork; _syscall0(pid_t, __libc_fork) weak_alias(__libc_fork,fork) libc_hidden_weak(fork) @@ -22,6 +22,7 @@ libc_hidden_weak(fork) #elif defined __UCLIBC_HAS_STUBS__ +extern __typeof(fork) __libc_fork; pid_t __libc_fork(void) { __set_errno(ENOSYS); |