projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a17753e
)
Fix Hugs build (#ifdef code inclusion was slightly wrong)
author
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Wed, 18 Feb 2009 12:03:00 +0000
(12:03 +0000)
committer
Malcolm.Wallace@cs.york.ac.uk
<unknown>
Wed, 18 Feb 2009 12:03:00 +0000
(12:03 +0000)
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
2579c02
..
7cfb090
100644
(file)
--- a/
System/Directory.hs
+++ b/
System/Directory.hs
@@
-902,6
+902,8
@@
getModificationTime name =
withFileStatus "getModificationTime" name $ \ st ->
modificationTime st
+#endif /* !__HUGS__ */
+
withFileStatus :: String -> FilePath -> (Ptr CStat -> IO a) -> IO a
withFileStatus loc name f = do
modifyIOError (`ioeSetFileName` name) $
@@
-944,7
+946,6
@@
foreign import ccall unsafe "__hscore_S_IXUSR" s_IXUSR :: CMode
foreign import ccall unsafe "__hscore_S_IFDIR" s_IFDIR :: CMode
#endif
-#endif /* !__HUGS__ */
#ifdef __GLASGOW_HASKELL__
foreign import ccall unsafe "__hscore_long_path_size"