[project @ 2002-07-18 06:05:29 by sof]
authorsof <unknown>
Thu, 18 Jul 2002 06:05:31 +0000 (06:05 +0000)
committersof <unknown>
Thu, 18 Jul 2002 06:05:31 +0000 (06:05 +0000)
more include tweaking

ghc/rts/Adjustor.c
ghc/rts/Linker.c
ghc/rts/Main.c
ghc/rts/StgMiscClosures.hc
ghc/rts/hooks/NoRunnableThreads.c

index 0fa9bfe..84ace23 100644 (file)
@@ -40,6 +40,7 @@ Haskell side.
 #include "Rts.h"
 #include "RtsUtils.h"
 #include "RtsFlags.h"
+#include <stdlib.h>
 
 /* Heavily arch-specific, I'm afraid.. */
 
index e6bcb7e..f742749 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Linker.c,v 1.99 2002/07/17 08:26:44 simonmar Exp $
+ * $Id: Linker.c,v 1.100 2002/07/18 06:05:29 sof Exp $
  *
  * (c) The GHC Team, 2000, 2001
  *
@@ -62,6 +62,7 @@
 #elif defined(cygwin32_TARGET_OS) || defined (mingw32_TARGET_OS)
 #  define OBJFORMAT_PEi386
 #  include <windows.h>
+#  include <math.h>
 #elif defined(darwin_TARGET_OS)
 #  define OBJFORMAT_MACHO
 #  include <mach-o/loader.h>
index 49a681f..0413168 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: Main.c,v 1.34 2002/02/13 08:48:06 sof Exp $
+ * $Id: Main.c,v 1.35 2002/07/18 06:05:30 sof Exp $
  *
  * (c) The GHC Team 1998-2000
  *
@@ -16,6 +16,7 @@
 #include "RtsFlags.h"
 #include "RtsUtils.h"
 #include "Prelude.h"
+#include <stdlib.h>
 
 #ifdef DEBUG
 # include "Printer.h"   /* for printing        */
index 50530c3..38f66c6 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: StgMiscClosures.hc,v 1.76 2002/04/19 10:22:58 simonmar Exp $
+ * $Id: StgMiscClosures.hc,v 1.77 2002/07/18 06:05:30 sof Exp $
  *
  * (c) The GHC Team, 1998-2000
  *
@@ -23,8 +23,8 @@
 # include "StgRun.h"   /* for StgReturn and register saving */
 #endif
 
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
 #endif
 
 /* ToDo: make the printing of panics more win32-friendly, i.e.,
index c5acd2e..dd33f79 100644 (file)
@@ -1,5 +1,5 @@
 /* -----------------------------------------------------------------------------
- * $Id: NoRunnableThreads.c,v 1.3 2002/07/17 09:21:51 simonmar Exp $
+ * $Id: NoRunnableThreads.c,v 1.4 2002/07/18 06:05:31 sof Exp $
  *
  * User-overridable RTS hooks.
  *
@@ -8,6 +8,7 @@
 #include "Rts.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 
 /*
   Hook to invoke when there's nothing left on the runnable threads