summaryrefslogtreecommitdiff
path: root/Command/Add.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-17 17:53:50 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-17 17:53:50 -0400
commit659570ea45c917bffe58c0389b8d7c6b910136c6 (patch)
treeae1ea24f9a39003e3c9320544e809f786b490e8d /Command/Add.hs
parentecd72936a56320d0aceb431f795c457061be3d27 (diff)
Revert "avoid hsc files on Windows"
This reverts commit 699a90bdc195a67c5aa5fca34fcaa07fb2b530ae. My windows build environment was broken; reverted to backup.
Diffstat (limited to 'Command/Add.hs')
-rw-r--r--Command/Add.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index 231beb1fb..e0a8269aa 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -24,10 +24,8 @@ import Annex.Link
import qualified Annex
import qualified Annex.Queue
#ifndef __ANDROID__
-#ifdef WITH_CLIBS
import Utility.Touch
#endif
-#endif
import Utility.FileMode
import Config
import Utility.InodeCache
@@ -208,14 +206,12 @@ link file key mcache = flip catchAnnex (undo file key) $ do
replaceFile file $ makeAnnexLink l
#ifndef __ANDROID__
-#ifdef WITH_CLIBS
-- touch symlink to have same time as the original file,
-- as provided in the InodeCache
case mcache of
Just c -> liftIO $ touch file (TimeSpec $ inodeCacheToMtime c) False
Nothing -> noop
#endif
-#endif
return l