From ba9a368b96a4ae622fe463c178f223dffdd5a38f Mon Sep 17 00:00:00 2001 From: "Malcolm.Wallace@cs.york.ac.uk" Date: Wed, 18 Feb 2009 12:03:00 +0000 Subject: [PATCH] Fix Hugs build (#ifdef code inclusion was slightly wrong) --- System/Directory.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Directory.hs b/System/Directory.hs index 2579c02..7cfb090 100644 --- 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" -- 1.7.10.4