Skip to content

Commit 21e265e

Browse files
committed
WINIO: Fix imports to openNewBinaryFile
1 parent 8d48449 commit 21e265e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Cabal/Distribution/Compat/Internal/TempFile.hs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ import Distribution.Compat.Exception
1212
import System.FilePath ((</>))
1313
import Foreign.C (CInt, eEXIST, getErrno, errnoToIOError)
1414

15-
import System.IO (Handle, openTempFile, openBinaryTempFile)
15+
import System.IO (Handle, openTempFile, openBinaryTempFile
16+
#if defined(__IO_MANAGER_WINIO__)
17+
, openNewBinaryFile
18+
#endif
19+
)
1620
import Data.Bits ((.|.))
1721
import System.Posix.Internals (c_open, c_close, o_CREAT, o_EXCL, o_RDWR,
1822
o_BINARY, o_NONBLOCK, o_NOCTTY,

0 commit comments

Comments
 (0)