fix build on windows
This commit is contained in:
parent
b219be5100
commit
00be07070c
1 changed files with 5 additions and 1 deletions
|
@ -163,6 +163,10 @@ runLocal runmode runner a = case a of
|
||||||
torSocketFile :: Annex (Maybe FilePath)
|
torSocketFile :: Annex (Maybe FilePath)
|
||||||
torSocketFile = do
|
torSocketFile = do
|
||||||
u <- getUUID
|
u <- getUUID
|
||||||
uid <- liftIO getRealUserID
|
|
||||||
let ident = fromUUID u
|
let ident = fromUUID u
|
||||||
|
#ifndef mingw32_HOST_OS
|
||||||
|
uid <- liftIO getRealUserID
|
||||||
|
#else
|
||||||
|
let uid = 0
|
||||||
|
#endif
|
||||||
liftIO $ getHiddenServiceSocketFile torAppName uid ident
|
liftIO $ getHiddenServiceSocketFile torAppName uid ident
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue