From: Joey Hess Date: Fri, 30 Dec 2016 16:31:51 +0000 (-0400) Subject: fix build on windows X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~278^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=00be07070c6cf885318352110fcf0ae495fdf7c9;p=git-annex.git fix build on windows --- diff --git a/P2P/Annex.hs b/P2P/Annex.hs index b7372fd4dd..82f669eaf8 100644 --- a/P2P/Annex.hs +++ b/P2P/Annex.hs @@ -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