diff options
author | Simon Marlow <marlowsd@gmail.com> | 2010-03-02 14:47:19 +0000 |
---|---|---|
committer | Simon Marlow <marlowsd@gmail.com> | 2010-03-02 14:47:19 +0000 |
commit | 8693219d6b33a2174254cb0fb23b9ba2ad90b272 (patch) | |
tree | 9112798409fc1ea6f5af6b096f195d07b2a3dacd /utils | |
parent | 3139d8d35fda19fec8a8c5fac15e052befc892f2 (diff) | |
download | haskell-8693219d6b33a2174254cb0fb23b9ba2ad90b272.tar.gz |
fix Windows build
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ghc-pkg/Main.hs | 5 |
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 |