Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh-2.6beta20 doesn't compile under Linux pre2.0.14



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