X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=cbits%2Fsystem.c;h=3ace591ac047de83f2669604bec7f22fdf9f1c21;hb=4ea71f2a9ade50ca74a091338948ef02c4e23d6d;hp=6c4e7f5fd1dc4b468f70480af20a55fb4ffd8d18;hpb=91ad6d44f7b29d2ede170e3106042b36c9904da1;p=ghc-base.git diff --git a/cbits/system.c b/cbits/system.c index 6c4e7f5..3ace591 100644 --- a/cbits/system.c +++ b/cbits/system.c @@ -1,7 +1,7 @@ /* * (c) The University of Glasgow 2002 * - * $Id: system.c,v 1.5 2002/02/07 11:13:30 simonmar Exp $ + * $Id: system.c,v 1.7 2003/02/04 11:55:54 simonmar Exp $ * * system Runtime Support */ @@ -16,11 +16,19 @@ #include #endif +#ifdef HAVE_VFORK_H +#include +#endif + +#ifdef HAVE_VFORK +#define fork vfork +#endif + HsInt systemCmd(HsAddr cmd) { /* -------------------- WINDOWS VERSION --------------------- */ -#if defined(mingw32_TARGET_OS) +#if defined(mingw32_TARGET_OS) || defined(cygwin32_TARGET_OS) return system(cmd); #else /* -------------------- UNIX VERSION --------------------- */