summaryrefslogtreecommitdiff
path: root/libc/stdio
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-15 10:30:54 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-15 10:30:54 +0000
commitab1101f24b79849c10ccca5f003436d0f5374d0e (patch)
tree4d218b9b5a9ff723301c1f765fefbdb81e48e8bc /libc/stdio
parent02605efdb3a8db28810894186b494c7186720cc7 (diff)
only declare vfork when needed, else no-mmu build fails
Diffstat (limited to 'libc/stdio')
-rw-r--r--libc/stdio/popen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c
index 501cd415c..2163d7f8c 100644
--- a/libc/stdio/popen.c
+++ b/libc/stdio/popen.c
@@ -29,7 +29,6 @@ libc_hidden_proto(dup2)
libc_hidden_proto(fdopen)
libc_hidden_proto(pipe)
libc_hidden_proto(vfork)
-libc_hidden_proto(fork)
libc_hidden_proto(fclose)
/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
@@ -38,6 +37,7 @@ libc_hidden_proto(fclose)
# define vfork fork
# define VFORK_LOCK ((void) 0)
# define VFORK_UNLOCK ((void) 0)
+libc_hidden_proto(fork)
#endif
#ifdef __UCLIBC_HAS_THREADS__