projects
/
haskell-directory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
79ce1f0
)
fixes for non-GHC
author
Ross Paterson
<ross@soi.city.ac.uk>
Mon, 1 May 2006 14:43:22 +0000
(14:43 +0000)
committer
Ross Paterson
<ross@soi.city.ac.uk>
Mon, 1 May 2006 14:43:22 +0000
(14:43 +0000)
System/Directory.hs
patch
|
blob
|
history
diff --git
a/System/Directory.hs
b/System/Directory.hs
index
e3b3ed3
..
0ea1d47
100644
(file)
--- a/
System/Directory.hs
+++ b/
System/Directory.hs
@@
-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"