From 42c4505e1e5eb96314176e7b7c1b28adcce22310 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Wed, 27 May 2015 15:10:16 +0100 Subject: mingw: define a macro for spawn --- libbb/vfork_daemon_rexec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libbb') diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 6611dabfa..de4d14fce 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c @@ -17,6 +17,7 @@ #include "busybox.h" /* uses applet tables */ +#if !ENABLE_PLATFORM_MINGW32 /* This does a fork/exec in one call, using vfork(). Returns PID of new child, * -1 for failure. Runs argv[0], searching path if that has no / in it. */ pid_t FAST_FUNC spawn(char **argv) @@ -25,9 +26,6 @@ pid_t FAST_FUNC spawn(char **argv) volatile int failed; pid_t pid; - if (ENABLE_PLATFORM_MINGW32) - return mingw_spawn(argv); - fflush_all(); /* Be nice to nommu machines. */ @@ -61,6 +59,7 @@ pid_t FAST_FUNC spawn(char **argv) } return pid; } +#endif /* Die with an error message if we can't spawn a child process. */ pid_t FAST_FUNC xspawn(char **argv) -- cgit v1.2.3-55-g6feb