From e4a1f78e73c8edab487abbf5540990d62f95a666 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 21 Feb 2002 18:11:47 +0000 Subject: When vfork is not available and we have an MMU, then use fork() -Erik --- libc/stdio/popen.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/stdio') diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c index 0a91f0e22..cddc9d6c4 100644 --- a/libc/stdio/popen.c +++ b/libc/stdio/popen.c @@ -12,6 +12,12 @@ #include #include +/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ +#include +#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ +#define vfork fork +#endif + FILE *popen (const char *command, const char *mode) { FILE *fp; -- cgit v1.2.3