[commit: process] master: Fix the build on Windows (edad828)

Ian Lynagh igloo at earth.li
Sat Apr 27 22:53:10 CEST 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/process

On branch  : master

http://hackage.haskell.org/trac/ghc/changeset/edad828bd467f07d41dc7d35308154a1388a5d28

>---------------------------------------------------------------

commit edad828bd467f07d41dc7d35308154a1388a5d28
Author: Ian Lynagh <ian at well-typed.com>
Date:   Sat Apr 27 21:05:24 2013 +0100

    Fix the build on Windows

>---------------------------------------------------------------

 include/runProcess.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/runProcess.h b/include/runProcess.h
index 827e8d4..f435c59 100644
--- a/include/runProcess.h
+++ b/include/runProcess.h
@@ -33,7 +33,8 @@
 #define myfork vfork
 #elif defined(HAVE_WORKING_FORK)
 #define myfork fork
-#else
+// We don't need a fork command on Windows
+#elif !(defined(_MSC_VER) || defined(__MINGW32__) || defined(_WIN32))
 #error Cannot find a working fork command
 #endif
 





More information about the ghc-commits mailing list