fix build on windows

This commit is contained in:
Joey Hess 2016-12-30 12:31:51 -04:00
parent b219be5100
commit 00be07070c
No known key found for this signature in database
GPG key ID: C910D9222512E3C7

View file

@ -163,6 +163,10 @@ runLocal runmode runner a = case a of
torSocketFile :: Annex (Maybe FilePath)
torSocketFile = do
u <- getUUID
uid <- liftIO getRealUserID
let ident = fromUUID u
#ifndef mingw32_HOST_OS
uid <- liftIO getRealUserID
#else
let uid = 0
#endif
liftIO $ getHiddenServiceSocketFile torAppName uid ident