Utility.OpenFile is posix only
- License: BSD-2-clause
-}
+{-# LANGUAGE CPP #-}
+
module Utility.OpenFile where
+#ifndef mingw32_HOST_OS
+
import System.IO
import System.Posix.IO
import GHC.IO.FD
fd <- openFdWithMode f ReadOnly Nothing defaultFileFlags
(fd', fdtype) <- mkFD (fromIntegral fd) ReadMode (Just (Stream, 0, 0)) False False
mkHandleFromFD fd' fdtype (fromRawFilePath f) ReadMode False Nothing
+
+#endif
### Have you had any luck using git-annex before? (Sometimes we get tired of reading bug reports all day and a lil' positive end note does wonders)
+> [[fixed|done]] --[[Joey]]