fixes for non-GHC
authorRoss Paterson <ross@soi.city.ac.uk>
Mon, 1 May 2006 14:43:22 +0000 (14:43 +0000)
committerRoss Paterson <ross@soi.city.ac.uk>
Mon, 1 May 2006 14:43:22 +0000 (14:43 +0000)
System/Directory.hs

index e3b3ed3..0ea1d47 100644 (file)
@@ -591,7 +591,7 @@ findExecutable binary =
               return (Just fpath)
       else return Nothing
 
-foreign import stdcall unsafe "SearchPath"
+foreign import stdcall unsafe "SearchPathA"
             c_SearchPath :: CString
                          -> CString
                          -> CString
@@ -599,6 +599,10 @@ foreign import stdcall unsafe "SearchPath"
                          -> CString
                          -> Ptr CString
                          -> IO CInt
+# if defined(__GLASGOW_HASKELL__)
+long_path_size :: Int
+long_path_size = 4096
+# endif
 #else
  do
   path <- getEnv "PATH"