summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamar Christina <tamar@zhox.com>2015-03-03 19:41:43 -0600
committerAustin Seipp <austin@well-typed.com>2015-03-03 19:41:44 -0600
commite673b8408d84f9149f88964c3318059984eb7788 (patch)
treef0522f9f0490c9a296f887e93b9986af01703c9d
parent6e77d45b2b4dcf189b71621009e80b96a3c5155a (diff)
downloadhaskell-e673b8408d84f9149f88964c3318059984eb7788.tar.gz
Fix -Werror build failure in RtsMain
Summary: Something in Excn.h's include chain is loading _mingw.h which is defining a macro that PosixSource.h is going to define. _mingw.h's version properly checks if it has already been defined and skips it, so fixing the warning can be done by just including Excn.h later (moved it to before last include). Test Plan: ./validate Reviewers: austin Reviewed By: austin Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D698
-rw-r--r--rts/RtsMain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rts/RtsMain.c b/rts/RtsMain.c
index 667c9e4ae2..154eafa0e0 100644
--- a/rts/RtsMain.c
+++ b/rts/RtsMain.c
@@ -8,7 +8,6 @@
#define COMPILING_RTS_MAIN
-#include "Excn.h"
#include "PosixSource.h"
#include "Rts.h"
#include "RtsAPI.h"
@@ -16,6 +15,7 @@
#include "RtsUtils.h"
#include "Prelude.h"
#include "Task.h"
+#include "Excn.h"
#ifdef DEBUG
# include "Printer.h" /* for printing */