Commit 898f34cd authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

rts/RtsSymbols.c: Fix Windows build

Test Plan:
 - Build whole of GHC on Linux.
 - Cross-compile rts/RtsSymbols.c and rts/Linker.c to Windows using the
   i686-w64-mingw32-gcc and x86_64-w64-mingw32-gcc cross compilers.

Reviewers: bgamari, awson, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D1365
parent 3ed4b804
......@@ -6,6 +6,7 @@
*
* ---------------------------------------------------------------------------*/
#include "ghcplatform.h"
#include "RtsSymbols.h"
#include "Rts.h"
......@@ -17,6 +18,13 @@
#include "posix/Signals.h"
#endif
#if defined(mingw32_HOST_OS)
#include <sys/stat.h>
#include <io.h>
#include <windows.h>
#include <shfolder.h> /* SHGetFolderPathW */
#endif
/* -----------------------------------------------------------------------------
* Symbols to be inserted into the RTS symbol table.
*/
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment