summaryrefslogtreecommitdiff
path: root/ghc/hschooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'ghc/hschooks.c')
-rw-r--r--ghc/hschooks.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/ghc/hschooks.c b/ghc/hschooks.c
index 3a42801c11..9b1be56db2 100644
--- a/ghc/hschooks.c
+++ b/ghc/hschooks.c
@@ -5,11 +5,18 @@ in instead of the defaults.
*/
#include "../rts/PosixSource.h"
-#include "../includes/Rts.h"
+
+/*
+ * This should be linked against Rts.h from the compiler which is compiling us.
+ * For instance, if we are compiling this file to produce the stage1 compiler,
+ * we should use Rts.h from stage0.
+ */
+#include "Rts.h"
#include "HsFFI.h"
#include <string.h>
+#include <stdbool.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>