[project @ 2004-08-16 09:31:15 by simonmar]
authorsimonmar <unknown>
Mon, 16 Aug 2004 09:31:15 +0000 (09:31 +0000)
committersimonmar <unknown>
Mon, 16 Aug 2004 09:31:15 +0000 (09:31 +0000)
#ifdefery to work around change in name of config.h

cbits/rawSystem.c

index 62d2efd..7a8f1a8 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * (c) The University of Glasgow 1994-2003
+ * (c) The University of Glasgow 1994-2004
  *
  * shell-less system Runtime Support (see System.Cmd.rawSystem).
  */
@@ -7,7 +7,14 @@
 /* The itimer stuff in this module is non-posix */
 /* #include "PosixSource.h" */
 
+/* This ifdef is required because this source might be compiled by an
+ * external compiler.  See ghc/utils/runghc/rawSystem.c for example.
+ */
+#if __GLASGOW_HASKELL__ < 603
+#include "config.h"
+#else
 #include "ghcconfig.h"
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>