projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b35c301
)
Fix build on Windows
author
Ian Lynagh
<igloo@earth.li>
Mon, 13 Dec 2010 23:58:37 +0000
(23:58 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Mon, 13 Dec 2010 23:58:37 +0000
(23:58 +0000)
GHC/IO/FD.hs
patch
|
blob
|
history
diff --git
a/GHC/IO/FD.hs
b/GHC/IO/FD.hs
index
3ba155e
..
659f610
100644
(file)
--- a/
GHC/IO/FD.hs
+++ b/
GHC/IO/FD.hs
@@
-279,17
+279,17
@@
stderr = stdFD 2
close :: FD -> IO ()
close fd =
#ifndef mingw32_HOST_OS
close :: FD -> IO ()
close fd =
#ifndef mingw32_HOST_OS
- (flip finally) (release fd) $ do
+ (flip finally) (release fd) $
#endif
#endif
- let closer realFd =
- throwErrnoIfMinus1Retry_ "GHC.IO.FD.close" $
+ do let closer realFd =
+ throwErrnoIfMinus1Retry_ "GHC.IO.FD.close" $
#ifdef mingw32_HOST_OS
#ifdef mingw32_HOST_OS
- if fdIsSocket fd then
- c_closesocket (fromIntegral realFd)
- else
+ if fdIsSocket fd then
+ c_closesocket (fromIntegral realFd)
+ else
#endif
#endif
- c_close (fromIntegral realFd)
- closeFdWith closer (fromIntegral (fdFD fd))
+ c_close (fromIntegral realFd)
+ closeFdWith closer (fromIntegral (fdFD fd))
release :: FD -> IO ()
#ifdef mingw32_HOST_OS
release :: FD -> IO ()
#ifdef mingw32_HOST_OS