fix build with unix-2.8.0
Changed the parameters to openFd. So needed to add a small wrapper library to keep supporting older versions as well.
This commit is contained in:
parent
4ef16f53ed
commit
68c9b08faf
12 changed files with 51 additions and 16 deletions
|
@ -30,6 +30,7 @@ import Utility.Directory
|
|||
import Utility.Monad
|
||||
import Utility.Path.AbsRel
|
||||
import Utility.FileMode
|
||||
import Utility.OpenFd
|
||||
import Utility.LockFile.LockStatus
|
||||
import Utility.ThreadScheduler
|
||||
import Utility.Hash
|
||||
|
@ -204,7 +205,7 @@ linkToLock (Just _) src dest = do
|
|||
)
|
||||
Left _ -> catchMaybeIO $ do
|
||||
let setup = do
|
||||
fd <- openFd dest WriteOnly
|
||||
fd <- openFdWithMode dest WriteOnly
|
||||
(Just $ combineModes readModes)
|
||||
(defaultFileFlags {exclusive = True})
|
||||
fdToHandle fd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue