diff options
Diffstat (limited to 'cbits/HsUnix.c')
-rw-r--r-- | cbits/HsUnix.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index bb3a3c7..dd4b4f6 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -132,14 +132,21 @@ int __hsunix_push_module(int fd, const char *module) int __hscore_mkstemp(char *filetemplate) { return (mkstemp(filetemplate)); } -char *__hscore_mkdtemp(char *filetemplate) { - return (mkdtemp(filetemplate)); -} +#endif + +#if HAVE_MKSTEMPS int __hscore_mkstemps(char *filetemplate, int suffixlen) { return (mkstemps(filetemplate, suffixlen)); } #endif +#if HAVE_MKDTEMP +char *__hscore_mkdtemp(char *filetemplate) { + return (mkdtemp(filetemplate)); +} +#endif + + #if !defined(__MINGW32__) && !defined(irix_HOST_OS) int __hscore_getrlimit(int resource, struct rlimit *rlim) { return (getrlimit(resource, rlim)); |