From 9970956e1dcf6a820bba28f05f7021d1d9510e9a Mon Sep 17 00:00:00 2001 From: Ian Lynagh Date: Tue, 20 May 2008 16:13:12 +0000 Subject: [PATCH] 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. --- include/HsBase.h | 4 ++++ 1 file changed, 4 insertions(+) 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__) -- 1.7.10.4