projects
/
ghc-base.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-04-11 11:43:09 by ross]
[ghc-base.git]
/
cbits
/
system.c
diff --git
a/cbits/system.c
b/cbits/system.c
index
6534ca8
..
3ace591
100644
(file)
--- a/
cbits/system.c
+++ b/
cbits/system.c
@@
-1,7
+1,7
@@
/*
/*
- * (c) The GRASP/AQUA Project, Glasgow University, 1994-1998
+ * (c) The University of Glasgow 2002
*
*
- * $Id: system.c,v 1.4 2001/12/21 15:07:26 simonmar Exp $
+ * $Id: system.c,v 1.7 2003/02/04 11:55:54 simonmar Exp $
*
* system Runtime Support
*/
*
* system Runtime Support
*/
@@
-9,18
+9,26
@@
/* The itimer stuff in this module is non-posix */
// #include "PosixSource.h"
/* The itimer stuff in this module is non-posix */
// #include "PosixSource.h"
-#include "HsCore.h"
+#include "HsBase.h"
#if defined(mingw32_TARGET_OS)
#include <windows.h>
#include <stdlib.h>
#endif
#if defined(mingw32_TARGET_OS)
#include <windows.h>
#include <stdlib.h>
#endif
+#ifdef HAVE_VFORK_H
+#include <vfork.h>
+#endif
+
+#ifdef HAVE_VFORK
+#define fork vfork
+#endif
+
HsInt
systemCmd(HsAddr cmd)
{
/* -------------------- WINDOWS VERSION --------------------- */
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 --------------------- */
return system(cmd);
#else
/* -------------------- UNIX VERSION --------------------- */