diff options
author | Ian Lynagh <igloo@earth.li> | 2007-07-21 01:18:17 +0000 |
---|---|---|
committer | Ian Lynagh <igloo@earth.li> | 2007-07-21 01:18:17 +0000 |
commit | 602adc29dc507205f99b6031ed5020e704a443ad (patch) | |
tree | b1514baa8c46fbf3b4e97e654541aa55da0f3092 /compat | |
parent | 916a1cabd18ccd9ffee4e9cc279aefb20f531fbf (diff) | |
download | haskell-602adc29dc507205f99b6031ed5020e704a443ad.tar.gz |
Fix the Windows build
Diffstat (limited to 'compat')
-rw-r--r-- | compat/Compat/Directory.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compat/Compat/Directory.hs b/compat/Compat/Directory.hs index 4d7cb4bde9..983f0830c0 100644 --- a/compat/Compat/Directory.hs +++ b/compat/Compat/Directory.hs @@ -32,6 +32,9 @@ import Foreign.Marshal.Alloc ( allocaBytes ) import System.IO (IOMode(..), openBinaryFile, hGetBuf, hPutBuf, hClose) import System.IO.Error ( try ) import GHC.IOBase ( IOException(..) ) +#if defined(mingw32_HOST_OS) +import GHC.IOBase ( IOErrorType(..) ) +#endif #else import System.IO ( try ) #endif |