Fix Hugs build (#ifdef code inclusion was slightly wrong)
authorMalcolm.Wallace@cs.york.ac.uk <unknown>
Wed, 18 Feb 2009 12:03:00 +0000 (12:03 +0000)
committerMalcolm.Wallace@cs.york.ac.uk <unknown>
Wed, 18 Feb 2009 12:03:00 +0000 (12:03 +0000)
System/Directory.hs

index 2579c02..7cfb090 100644 (file)
@@ -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"