diff options
Diffstat (limited to 'Assistant/Threads/Watcher.hs')
-rw-r--r-- | Assistant/Threads/Watcher.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Assistant/Threads/Watcher.hs b/Assistant/Threads/Watcher.hs index 6a56eadbb..d9afb9adf 100644 --- a/Assistant/Threads/Watcher.hs +++ b/Assistant/Threads/Watcher.hs @@ -50,9 +50,13 @@ import Data.Time.Clock checkCanWatch :: Annex () checkCanWatch | canWatch = do +#ifndef mingw32_HOST_OS liftIO Lsof.setup unlessM (liftIO (inPath "lsof") <||> Annex.getState Annex.force) needLsof +#else + noop +#endif | otherwise = error "watch mode is not available on this system" needLsof :: Annex () |