projects
/
ghc-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6473a78
)
Add a wrapper for mkstemp
author
Ian Lynagh
<igloo@earth.li>
Tue, 20 May 2008 16:13:12 +0000
(16:13 +0000)
committer
Ian Lynagh
<igloo@earth.li>
Tue, 20 May 2008 16:13:12 +0000
(16:13 +0000)
This is for #2038: macros are used in the Linux .h includes to redirect
to a 64-bit version when large file support is enabled.
include/HsBase.h
patch
|
blob
|
history
diff --git
a/include/HsBase.h
b/include/HsBase.h
index
f69e9cf
..
1f1837b
100644
(file)
--- a/
include/HsBase.h
+++ b/
include/HsBase.h
@@
-687,6
+687,10
@@
INLINE int __hscore_fstat(int fd, struct_stat *buf) {
return (fstat(fd,buf));
}
+INLINE int __hscore_mkstemp(char *filetemplate) {
+ return (mkstemp(filetemplate));
+}
+
// select-related stuff
#if !defined(__MINGW32__)