X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=include%2FHsBase.h;h=7a059c87cf868c751b4553bc97dfe2e6117469a7;hb=039848a1250b650bf55492b8ad791b88313f5832;hp=1f1837b016919f35ee9cb8cc4054408a2a13d649;hpb=9970956e1dcf6a820bba28f05f7021d1d9510e9a;p=ghc-base.git diff --git a/include/HsBase.h b/include/HsBase.h index 1f1837b..7a059c8 100644 --- a/include/HsBase.h +++ b/include/HsBase.h @@ -687,9 +687,21 @@ 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) { + return (getrlimit(resource, rlim)); +} + +INLINE int __hscore_setrlimit(int resource, struct rlimit *rlim) { + return (setrlimit(resource, rlim)); +} +#endif // select-related stuff