avoid some build warnings on windows

This commit is contained in:
Joey Hess 2019-09-12 14:11:19 -04:00
parent 42bdaaa5d7
commit 53fd746705
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
6 changed files with 15 additions and 5 deletions

View file

@ -170,7 +170,9 @@ genInodeCache f delta = catchDefaultIO Nothing $
toInodeCache :: TSDelta -> FilePath -> FileStatus -> IO (Maybe InodeCache)
toInodeCache (TSDelta getdelta) f s
| isRegularFile s = do
#ifndef mingw32_HOST_OS
delta <- getdelta
#endif
sz <- getFileSize' f s
#ifdef mingw32_HOST_OS
mtime <- MTimeHighRes . utcTimeToPOSIXSeconds <$> getModificationTime f

View file

@ -10,8 +10,6 @@
module Utility.Path.Max where
import System.FilePath
#ifndef mingw32_HOST_OS
import Utility.Exception
import System.Posix.Files