From 3ae88eeaab0c2ed5924c0c80f0b112e6815bc82f Mon Sep 17 00:00:00 2001
From: Peter S. Mazinger <ps.m@gmx.net>
Date: Thu, 14 Apr 2011 12:56:56 +0200
Subject: [PATCH 244/396] wordexp.c: use vfork instead of fork on non-MMU archs

Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
---
 libc/misc/wordexp/wordexp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/libc/misc/wordexp/wordexp.c b/libc/misc/wordexp/wordexp.c
index f970131..4074810 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
 
 /*
-- 
1.7.0.4

