Commit eed47c23 authored by Ian Lynagh's avatar Ian Lynagh

Fix hSeek003 on Windows

parent 259224e3
......@@ -4,7 +4,7 @@ module Main(main) where
import IO
import Monad ( sequence )
#ifdef i386_unknown_mingw32
#ifdef mingw32_HOST_OS
import GHC.Handle(hSetBinaryMode)
#endif
......@@ -19,7 +19,7 @@ bmo_ls = [NoBuffering, LineBuffering, BlockBuffering Nothing,
main = do
hdl <- openFile "hSeek003.hs" ReadMode
#ifdef i386_unknown_mingw32
#ifdef mingw32_HOST_OS
hSetBinaryMode hdl True
#endif
sequence (zipWith testPosns (repeat hdl) bmo_ls)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment