summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2011-06-20 20:20:01 +0100
committerIan Lynagh <igloo@earth.li>2011-06-20 20:20:01 +0100
commit88d77e01824286a75955ad89df0376b9e93b8d08 (patch)
treefd1c8041c5966a7364a5300bda128eda74215c3c
parenta61aedc730e68a1b0c166b81a65a8ea575e8094b (diff)
downloadhaskell-88d77e01824286a75955ad89df0376b9e93b8d08.tar.gz
Fix build on Windows
-rw-r--r--libraries/base/GHC/IO/Handle/FD.hs2
-rw-r--r--libraries/base/GHC/Windows.hs2
2 files changed, 2 insertions, 2 deletions
diff --git a/libraries/base/GHC/IO/Handle/FD.hs b/libraries/base/GHC/IO/Handle/FD.hs
index 31f90eac0a..bfb8a3db31 100644
--- a/libraries/base/GHC/IO/Handle/FD.hs
+++ b/libraries/base/GHC/IO/Handle/FD.hs
@@ -90,7 +90,7 @@ stdHandleFinalizer fp m = do
-- translation that the CRT IO library does.
setBinaryMode :: FD.FD -> IO ()
#ifdef mingw32_HOST_OS
-setBinaryMode fd = do _ <- setmode (fdFD fd) True
+setBinaryMode fd = do _ <- setmode (FD.fdFD fd) True
return ()
#else
setBinaryMode _ = return ()
diff --git a/libraries/base/GHC/Windows.hs b/libraries/base/GHC/Windows.hs
index 836dcf887d..fa25f63e32 100644
--- a/libraries/base/GHC/Windows.hs
+++ b/libraries/base/GHC/Windows.hs
@@ -20,7 +20,7 @@
module GHC.Windows (
HANDLE, DWORD, LPTSTR, iNFINITE,
- throwGetLastError, maperrno
+ throwGetLastError, c_maperrno
) where
import GHC.Base