From 2000e9a4b8d697b2b29ec8d3f65bad3e4d940338 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 1 Jan 2020 14:40:00 -0400 Subject: [PATCH] avoid build warning on windows --- Annex/Content/PointerFile.hs | 2 ++ Remote/Git.hs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Annex/Content/PointerFile.hs b/Annex/Content/PointerFile.hs index 997f731ca6..cf66801d94 100644 --- a/Annex/Content/PointerFile.hs +++ b/Annex/Content/PointerFile.hs @@ -22,7 +22,9 @@ import Annex.ReplaceFile import Annex.InodeSentinal import Annex.Content.LowLevel import Utility.InodeCache +#if ! defined(mingw32_HOST_OS) import Utility.Touch +#endif {- Populates a pointer file with the content of a key. - diff --git a/Remote/Git.hs b/Remote/Git.hs index d145a0e542..3a7bb48446 100644 --- a/Remote/Git.hs +++ b/Remote/Git.hs @@ -61,9 +61,9 @@ import Creds import Types.NumCopies import Annex.Action import Messages.Progress -import qualified Utility.RawFilePath as R #ifndef mingw32_HOST_OS +import qualified Utility.RawFilePath as R import Utility.FileMode #endif