From: sewardj Date: Mon, 17 Sep 2001 17:23:32 +0000 (+0000) Subject: [project @ 2001-09-17 17:23:32 by sewardj] X-Git-Tag: Approximately_9120_patches~963 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=2a15c00a5a0bd0b79f437841b6b246cc444940b5;p=ghc-hetmet.git [project @ 2001-09-17 17:23:32 by sewardj] Fix utterly bogus implementation of system on Windoze. --- diff --git a/ghc/lib/std/cbits/system.c b/ghc/lib/std/cbits/system.c index b912a48..62f1360 100644 --- a/ghc/lib/std/cbits/system.c +++ b/ghc/lib/std/cbits/system.c @@ -1,7 +1,7 @@ /* * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * - * $Id: system.c,v 1.18 2001/08/14 13:40:08 sewardj Exp $ + * $Id: system.c,v 1.19 2001/09/17 17:23:32 sewardj Exp $ * * system Runtime Support */ @@ -13,6 +13,7 @@ #if defined(mingw32_TARGET_OS) #include +#include #endif HsInt @@ -20,8 +21,7 @@ systemCmd(HsAddr cmd) { /* -------------------- WINDOWS VERSION --------------------- */ #if defined(mingw32_TARGET_OS) - if (system(cmd) < 0) return -1; - return 0; + return system(cmd); #else /* -------------------- UNIX VERSION --------------------- */ int pid;