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
|
@ -19,6 +19,7 @@ module Utility.DirWatcher.Kqueue (
|
|||
|
||||
import Common
|
||||
import Utility.DirWatcher.Types
|
||||
import Utility.OpenFd
|
||||
|
||||
import System.Posix.Types
|
||||
import Foreign.C.Types
|
||||
|
@ -110,7 +111,7 @@ scanRecursive topdir prune = M.fromList <$> walk [] [topdir]
|
|||
Nothing -> walk c rest
|
||||
Just info -> do
|
||||
mfd <- catchMaybeIO $
|
||||
Posix.openFd dir Posix.ReadOnly Nothing Posix.defaultFileFlags
|
||||
openFdWithMode (toRawFilePath dir) Posix.ReadOnly Nothing Posix.defaultFileFlags
|
||||
case mfd of
|
||||
Nothing -> walk c rest
|
||||
Just fd -> do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue