summaryrefslogtreecommitdiff
path: root/P2P
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-12-30 12:31:51 -0400
committerJoey Hess <joeyh@joeyh.name>2016-12-30 12:31:51 -0400
commit00be07070c6cf885318352110fcf0ae495fdf7c9 (patch)
treeb4f5790b0161677e598c81aabef8639bc5a6c314 /P2P
parentb219be510053b14a669e0f44d58289c4cc71d91c (diff)
fix build on windows
Diffstat (limited to 'P2P')
-rw-r--r--P2P/Annex.hs6
1 files changed, 5 insertions, 1 deletions
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