summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2007-07-21 01:18:17 +0000
committerIan Lynagh <igloo@earth.li>2007-07-21 01:18:17 +0000
commit602adc29dc507205f99b6031ed5020e704a443ad (patch)
treeb1514baa8c46fbf3b4e97e654541aa55da0f3092 /compat
parent916a1cabd18ccd9ffee4e9cc279aefb20f531fbf (diff)
downloadhaskell-602adc29dc507205f99b6031ed5020e704a443ad.tar.gz
Fix the Windows build
Diffstat (limited to 'compat')
-rw-r--r--compat/Compat/Directory.hs3
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