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:
7ee4b81
)
fix build failure on Windows
author
Simon Marlow
<marlowsd@gmail.com>
Thu, 25 Jun 2009 09:46:09 +0000
(09:46 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Thu, 25 Jun 2009 09:46:09 +0000
(09:46 +0000)
GHC/IO/FD.hs
patch
|
blob
|
history
diff --git
a/GHC/IO/FD.hs
b/GHC/IO/FD.hs
index
038319e
..
464097e
100644
(file)
--- a/
GHC/IO/FD.hs
+++ b/
GHC/IO/FD.hs
@@
-346,7
+346,11
@@
dup2 fd fdto = do
setNonBlockingMode :: FD -> Bool -> IO FD
setNonBlockingMode fd set = do
setNonBlockingFD (fdFD fd) set
+#if defined(mingw32_HOST_OS)
+ return fd
+#else
return fd{ fdIsNonBlocking = fromEnum set }
+#endif
ready :: FD -> Bool -> Int -> IO Bool
ready fd write msecs = do