projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cb7174
)
follow change in System.Posix.Internals.c_open
author
Simon Marlow
<marlowsd@gmail.com>
Mon, 22 Jun 2009 14:07:24 +0000
(14:07 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Mon, 22 Jun 2009 14:07:24 +0000
(14:07 +0000)
utils/ghc-pkg/Main.hs
patch
|
blob
|
history
diff --git
a/utils/ghc-pkg/Main.hs
b/utils/ghc-pkg/Main.hs
index
19052a5
..
d5baf9f
100644
(file)
--- a/
utils/ghc-pkg/Main.hs
+++ b/
utils/ghc-pkg/Main.hs
@@
-1342,8
+1342,12
@@
openNewFile dir template = do
oflags = rw_flags .|. o_EXCL
+#if __GLASGOW_HASKELL__ < 611
+ withFilePath = withCString
+#endif
+
findTempName x = do
- fd <- withCString filepath $ \ f ->
+ fd <- withFilePath filepath $ \ f ->
c_open f oflags 0o666
if fd < 0
then do