summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/System')
-rw-r--r--llvm/lib/System/Win32/Signals.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/System/Win32/Signals.cpp b/llvm/lib/System/Win32/Signals.cpp
index 1b6202a9db1..692a0476b1f 100644
--- a/llvm/lib/System/Win32/Signals.cpp
+++ b/llvm/lib/System/Win32/Signals.cpp
@@ -15,8 +15,12 @@
#include <llvm/System/Signals.h>
#include <vector>
-#include "dbghelp.h"
-#include "psapi.h"
+#ifdef __MINGW_H
+#include <imagehlp.h>
+#else
+#include <dbghelp.h>
+#endif
+#include <psapi.h>
#pragma comment(lib, "psapi.lib")
#pragma comment(lib, "dbghelp.lib")
OpenPOWER on IntegriCloud