summaryrefslogtreecommitdiff
path: root/libc/misc/wordexp/wordexp.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-14 12:56:56 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:36 +0200
commita307f244bc0632acc3bedc7c41284ed82a17e695 (patch)
treec7a806a5dcfec3b7e18a9a97308018ab469eb424 /libc/misc/wordexp/wordexp.c
parent26284b4021edcbc32f703fb813e379b6d5af02ef (diff)
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>
Diffstat (limited to 'libc/misc/wordexp/wordexp.c')
-rw-r--r--libc/misc/wordexp/wordexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libc/misc/wordexp/wordexp.c b/libc/misc/wordexp/wordexp.c
index f9701314d..4074810c1 100644
--- a/libc/misc/wordexp/wordexp.c
+++ b/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
/*