Add a wrapper for mkstemp
[ghc-base.git] / 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__)