avoid some build warnings on windows
This commit is contained in:
parent
42bdaaa5d7
commit
53fd746705
6 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue