[Tcsh] [PATCH] sh.func.c: handle RLIMIT_AS on Cygwin
Corinna Vinschen
vinschen at redhat.com
Mon Jan 26 11:24:56 UTC 2026
The preprocessor expression only handles RLIMIT_AS on Linux, but
it's defined on Cygwin as well.
---
sh.func.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sh.func.c b/sh.func.c
index 413bcb024877..6455e339cc29 100644
--- a/sh.func.c
+++ b/sh.func.c
@@ -1859,7 +1859,7 @@ doumask(Char **v, struct command *c)
# endif
# endif /* SYSVREL > 3 && BSDLIMIT */
-# if (defined(__linux__) || defined(__GNU__) || defined(__GLIBC__))
+# if (defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) || defined(__CYGWIN__)
# if defined(RLIMIT_AS) && !defined(RLIMIT_VMEM)
# define RLIMIT_VMEM RLIMIT_AS
# endif
--
2.52.0
More information about the Tcsh
mailing list