Browse Source

wordexp.c: use vfork instead of fork on non-MMU archs

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Peter S. Mazinger 13 years ago
parent
commit
a307f244bc
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libc/misc/wordexp/wordexp.c

+ 4 - 0
libc/misc/wordexp/wordexp.c

@@ -37,6 +37,10 @@
 #include <glob.h>
 #include <wordexp.h>
 
+#ifndef __ARCH_USE_MMU__
+# define fork vfork
+#endif
+
 #define __WORDEXP_FULL
 
 /*