fix build on windows
authorJoey Hess <joeyh@joeyh.name>
Fri, 30 Dec 2016 16:31:51 +0000 (12:31 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 30 Dec 2016 16:31:51 +0000 (12:31 -0400)
P2P/Annex.hs

index b7372fd4dd0139ecc413b345b659d38971ac464d..82f669eaf897ca9181df5d14553b4ce6b839ef28 100644 (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