Fix the build on Windows 2008-05-28
authorIan Lynagh <igloo@earth.li>
Tue, 20 May 2008 21:36:43 +0000 (21:36 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 20 May 2008 21:36:43 +0000 (21:36 +0000)
include/HsBase.h

index 1992342..7a059c8 100644 (file)
@@ -687,9 +687,11 @@ INLINE int __hscore_fstat(int fd, struct_stat *buf) {
        return (fstat(fd,buf));
 }
 
+#if !defined(__MINGW32__)
 INLINE int __hscore_mkstemp(char *filetemplate) {
     return (mkstemp(filetemplate));
 }
+#endif
 
 #if !defined(__MINGW32__) && !defined(irix_HOST_OS)
 INLINE int __hscore_getrlimit(int resource, struct rlimit *rlim) {