From 944b05c4aa35378db18cee4fcd4e1f02e67ce645 Mon Sep 17 00:00:00 2001 From: Herbert Valerio Riedel Date: Sat, 30 Jan 2016 22:38:28 +0100 Subject: Remove obsolete windows-related #ifdefs We haven't properly supported Windows for some time now, and we wouldn't have any way to test anyway, since GHC doesn't support Cygwin anymore either. --- cbits/HsUnix.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cbits/HsUnix.c') diff --git a/cbits/HsUnix.c b/cbits/HsUnix.c index fb63b45..49f90e8 100644 --- a/cbits/HsUnix.c +++ b/cbits/HsUnix.c @@ -69,18 +69,16 @@ int __hsunix_unlockpt(int fd) // push a SVR4 STREAMS module; do nothing if STREAMS not available int __hsunix_push_module(int fd, const char *module) { -#if defined(I_PUSH) && !defined(__CYGWIN__) && !defined(HAVE_DEV_PTC) +#if defined(I_PUSH) && !defined(HAVE_DEV_PTC) return ioctl(fd, I_PUSH, module); #else return 0; #endif } -#if !defined(__MINGW32__) int __hscore_mkstemp(char *filetemplate) { return (mkstemp(filetemplate)); } -#endif #if HAVE_MKSTEMPS int __hscore_mkstemps(char *filetemplate, int suffixlen) { @@ -95,7 +93,7 @@ char *__hscore_mkdtemp(char *filetemplate) { #endif -#if !defined(__MINGW32__) && !defined(irix_HOST_OS) +#if !defined(irix_HOST_OS) int __hscore_getrlimit(int resource, struct rlimit *rlim) { return (getrlimit(resource, rlim)); } -- cgit v1.2.3