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/stdlib/system.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libc/stdlib/system.c') diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index 6126d8114..8f654045e 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -4,6 +4,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 + int __libc_system(command) char *command; { -- cgit v1.2.3