From: Ian Lynagh Date: Tue, 20 May 2008 16:13:12 +0000 (+0000) Subject: Add a wrapper for mkstemp X-Git-Tag: 2008-05-28~2 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=9970956e1dcf6a820bba28f05f7021d1d9510e9a;p=ghc-base.git Add a wrapper for mkstemp 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. --- diff --git a/include/HsBase.h b/include/HsBase.h index f69e9cf..1f1837b 100644 --- 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__)