瀏覽代碼

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

Eric Andersen 23 年之前
父節點
當前提交
b93d7f3e92
共有 3 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      libc/stdio/popen.c
  2. 1 1
      libc/stdlib/system.c
  3. 1 1
      libc/stdlib/unix_grantpt.c

+ 1 - 1
libc/stdio/popen.c

@@ -14,7 +14,7 @@
 
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>
-#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ 
+#if ! defined __NR_vfork
 #define vfork fork	
 #endif
 

+ 1 - 1
libc/stdlib/system.c

@@ -6,7 +6,7 @@
 
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>
-#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ 
+#if ! defined __NR_vfork
 #define vfork fork	
 #endif
 

+ 1 - 1
libc/stdlib/unix_grantpt.c

@@ -33,7 +33,7 @@
 
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>
-#if ! defined __NR_vfork && defined __UCLIBC_HAS_MMU__ 
+#if ! defined __NR_vfork
 #define vfork fork	
 #endif