Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh-2.6beta20 doesn't compile under Linux pre2.0.14
- X-seq: zsh-users 253
- From: leitner@xxxxxxxxxxxxxxxxxxxxxx (Felix von Leitner)
- To: jkroeger@xxxxxxxxxxxxxxx
- Subject: Re: zsh-2.6beta20 doesn't compile under Linux pre2.0.14
- Date: Thu, 13 Jun 1996 02:25:30 +0200
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: <19960607203126.2843.qmail@xxxxxxxxxxxxxxx>; from jkroeger@xxxxxxxxxxxxxxx on Jul 7, 1996 20:31:26 -0000
- References: <19960607203126.2843.qmail@xxxxxxxxxxxxxxx>
Thus spake jkroeger@xxxxxxxxxxxxxxx (jkroeger@xxxxxxxxxxxxxxx):
> Recent Linux kernels introduced a new limit for the address space of a process:
> #define RLIMIT_AS 9 /* address space limit */
> This makes compiling zsh fail with the following error message:
> builtin.c:3539: #error there are some unknown limits. Fix me!
> make[1]: *** [builtin.o] Error 1
> make[1]: Leaving directory `/usr/src/bin/zsh-2.6-beta20/Src'
> make: *** [Src] Error 2
Apply this diff, it works for me.
Felix
--- Src/builtin.c Thu Jun 13 02:23:09 1996
+++ Src/builtin.c.new Thu Jun 13 02:22:49 1996
@@ -3535,6 +3535,11 @@
# define NEXT_RLIM (RLIMIT_MEMLOCK + 1)
"memorylocked",
# endif /* RLIMIT_MEMLOCK */
+# if defined RLIMIT_AS && RLIMIT_AS == NEXT_RLIM
+# undef NEXT_RLIM
+# define NEXT_RLIM (RLIMIT_AS + 1)
+ "addressspace",
+# endif /* RLIMIT_AS */
# if NEXT_RLIM != RLIM_NLIMITS
#error there are some unknown limits. Fix me!
# endif
Messages sorted by:
Reverse Date,
Date,
Thread,
Author