summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorSimon Marlow <marlowsd@gmail.com>2010-03-02 14:47:19 +0000
committerSimon Marlow <marlowsd@gmail.com>2010-03-02 14:47:19 +0000
commit8693219d6b33a2174254cb0fb23b9ba2ad90b272 (patch)
tree9112798409fc1ea6f5af6b096f195d07b2a3dacd /utils
parent3139d8d35fda19fec8a8c5fac15e052befc892f2 (diff)
downloadhaskell-8693219d6b33a2174254cb0fb23b9ba2ad90b272.tar.gz
fix Windows build
Diffstat (limited to 'utils')
-rw-r--r--utils/ghc-pkg/Main.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/ghc-pkg/Main.hs b/utils/ghc-pkg/Main.hs
index 79404bc85e..a469ee764d 100644
--- 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