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
|
@ -14,6 +14,7 @@ import RemoteDaemon.Core
|
|||
import Utility.Daemon
|
||||
#ifndef mingw32_HOST_OS
|
||||
import Annex.Path
|
||||
import Utility.OpenFd
|
||||
#endif
|
||||
|
||||
cmd :: Command
|
||||
|
@ -30,7 +31,7 @@ run o
|
|||
#ifndef mingw32_HOST_OS
|
||||
git_annex <- liftIO programPath
|
||||
ps <- gitAnnexDaemonizeParams
|
||||
let logfd = openFd "/dev/null" ReadOnly Nothing defaultFileFlags
|
||||
let logfd = openFdWithMode (toRawFilePath "/dev/null") ReadOnly Nothing defaultFileFlags
|
||||
liftIO $ daemonize git_annex ps logfd Nothing False runNonInteractive
|
||||
#else
|
||||
liftIO $ foreground Nothing runNonInteractive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue