diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-02-21 18:11:47 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-02-21 18:11:47 +0000 |
commit | e4a1f78e73c8edab487abbf5540990d62f95a666 (patch) | |
tree | 043e9d7662ad87bf090f5920bd85bf3cf1b5ae20 /libc/stdlib/system.c | |
parent | b0cc86a6fc6fc98d18e3bc232f1d83973d74cb3d (diff) |
When vfork is not available and we have an MMU, then use fork()
-Erik
Diffstat (limited to 'libc/stdlib/system.c')
-rw-r--r-- | libc/stdlib/system.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <unistd.h> #include <sys/wait.h> +/* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ +#include <sys/syscall.h> +#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ +#define vfork fork +#endif + int __libc_system(command) char *command; { |