aboutsummaryrefslogtreecommitdiffhomepage
path: root/cbits
diff options
context:
space:
mode:
authorGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-30 22:38:28 +0100
committerGravatar Herbert Valerio Riedel <hvr@gnu.org>2016-01-31 00:19:53 +0100
commit944b05c4aa35378db18cee4fcd4e1f02e67ce645 (patch)
treef27e6e14e14aa17224e482a42d255baca88bb6a2 /cbits
parent731f7dddcbae3c4332beac742605dade2d4a80ad (diff)
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.
Diffstat (limited to 'cbits')
-rw-r--r--cbits/HsUnix.c6
1 files changed, 2 insertions, 4 deletions
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));
}