From b93d7f3e928c6dd153838dd88375ed39cd311a2a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 31 Jul 2002 04:38:58 +0000 Subject: Per discussion on the mailing list, simply vfork -> fork mapping to only apply iff we do not have vfork available, which is simpler and more reasonable. -Erik --- libc/stdio/popen.c | 2 +- libc/stdlib/system.c | 2 +- libc/stdlib/unix_grantpt.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'libc') diff --git a/libc/stdio/popen.c b/libc/stdio/popen.c index a77a82e66..ddf881899 100644 --- a/libc/stdio/popen.c +++ b/libc/stdio/popen.c @@ -14,7 +14,7 @@ /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include -#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ +#if ! defined __NR_vfork #define vfork fork #endif diff --git a/libc/stdlib/system.c b/libc/stdlib/system.c index 8f654045e..b15d601aa 100644 --- a/libc/stdlib/system.c +++ b/libc/stdlib/system.c @@ -6,7 +6,7 @@ /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include -#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ +#if ! defined __NR_vfork #define vfork fork #endif diff --git a/libc/stdlib/unix_grantpt.c b/libc/stdlib/unix_grantpt.c index c29612e81..49e65d16d 100644 --- a/libc/stdlib/unix_grantpt.c +++ b/libc/stdlib/unix_grantpt.c @@ -33,7 +33,7 @@ /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */ #include -#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ +#if ! defined __NR_vfork #define vfork fork #endif -- cgit v1.2.3