Add a wrapper for mkstemp
authorIan Lynagh <igloo@earth.li>
Tue, 20 May 2008 16:13:12 +0000 (16:13 +0000)
committerIan 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

index f69e9cf..1f1837b 100644 (file)
@@ -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__)