Commit 2a15c00a authored by sewardj's avatar sewardj
Browse files

[project @ 2001-09-17 17:23:32 by sewardj]

Fix utterly bogus implementation of system on Windoze.
parent 50cc9c13
/* /*
* (c) The GRASP/AQUA Project, Glasgow University, 1994-1998 * (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 * system Runtime Support
*/ */
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#if defined(mingw32_TARGET_OS) #if defined(mingw32_TARGET_OS)
#include <windows.h> #include <windows.h>
#include <stdlib.h>
#endif #endif
HsInt HsInt
...@@ -20,8 +21,7 @@ systemCmd(HsAddr cmd) ...@@ -20,8 +21,7 @@ systemCmd(HsAddr cmd)
{ {
/* -------------------- WINDOWS VERSION --------------------- */ /* -------------------- WINDOWS VERSION --------------------- */
#if defined(mingw32_TARGET_OS) #if defined(mingw32_TARGET_OS)
if (system(cmd) < 0) return -1; return system(cmd);
return 0;
#else #else
/* -------------------- UNIX VERSION --------------------- */ /* -------------------- UNIX VERSION --------------------- */
int pid; int pid;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment