projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3139d8d
)
fix Windows build
author
Simon Marlow
<marlowsd@gmail.com>
Tue, 2 Mar 2010 14:47:19 +0000
(14:47 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Tue, 2 Mar 2010 14:47:19 +0000
(14:47 +0000)
utils/ghc-pkg/Main.hs
patch
|
blob
|
history
diff --git
a/utils/ghc-pkg/Main.hs
b/utils/ghc-pkg/Main.hs
index
79404bc
..
a469ee7
100644
(file)
--- a/
utils/ghc-pkg/Main.hs
+++ b/
utils/ghc-pkg/Main.hs
@@
-52,8
+52,11
@@
import qualified Data.ByteString.Lazy as B
import qualified Data.Binary as Bin
import qualified Data.Binary.Get as Bin
-#if __GLASGOW_HASKELL__ < 612
+#if __GLASGOW_HASKELL__ < 612 || defined(mingw32_HOST_OS)
import Foreign
+#endif
+
+#if __GLASGOW_HASKELL__ < 612
import Foreign.C
import System.Posix.Internals
#if __GLASGOW_HASKELL__ >= 611