diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-12-30 12:31:51 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-12-30 12:31:51 -0400 |
commit | 524839bd447ed825a2572281e661db12d0c0507f (patch) | |
tree | ee22697e62f5a73d90938025e432fc4fc6ce5bea | |
parent | c532deba4a8020a8e777eaa6e205133c8c169c4a (diff) |
fix build on windows
-rw-r--r-- | P2P/Annex.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/P2P/Annex.hs b/P2P/Annex.hs index b7372fd4d..82f669eaf 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 |