[project @ 2001-12-18 10:37:52 by simonmar]
[ghc-hetmet.git] / ghc / lib / std / cbits / system.c
index d077323..62f1360 100644 (file)
@@ -1,18 +1,19 @@
 /* 
  * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
  *
- * $Id: system.c,v 1.17 2001/08/07 08:18:15 rrt Exp $
+ * $Id: system.c,v 1.19 2001/09/17 17:23:32 sewardj Exp $
  *
  * system Runtime Support
  */
 
 /* The itimer stuff in this module is non-posix */
-#define NON_POSIX_SOURCE
+/* #include "PosixSource.h" */
 
 #include "HsStd.h"
 
 #if defined(mingw32_TARGET_OS)
 #include <windows.h>
+#include <stdlib.h>
 #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;