From 5028a37ec9bafb4d43215bd05822b3430ed596b4 Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Mon, 2 Nov 2015 14:24:41 +0100
Subject: [PATCH] rts/win32: Add missing definition for EH_UNWINDING

This was taken from 5200bdeb26c5ec98739b14b10fc8907296bceeb9 on master.
---
 rts/win32/seh_excn.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/rts/win32/seh_excn.c b/rts/win32/seh_excn.c
index da5f64d81206..273ba569a0d1 100644
--- a/rts/win32/seh_excn.c
+++ b/rts/win32/seh_excn.c
@@ -1,6 +1,11 @@
 #include "ghcconfig.h"
 #include "seh_excn.h"
 
+// this should be in <excpt.h>, but it's been removed from MinGW distributions
+#ifndef EH_UNWINDING
+#define EH_UNWINDING   0x02
+#endif /* EH_UNWINDING */
+
 /*
  * Exception / signal handlers.
  */
-- 
GitLab