summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/xemacs/files')
-rw-r--r--app-editors/xemacs/files/xemacs-21.4.9-ppc-glibc-2.3.x.diff37
1 files changed, 37 insertions, 0 deletions
diff --git a/app-editors/xemacs/files/xemacs-21.4.9-ppc-glibc-2.3.x.diff b/app-editors/xemacs/files/xemacs-21.4.9-ppc-glibc-2.3.x.diff
new file mode 100644
index 000000000000..3c6d38abcd73
--- /dev/null
+++ b/app-editors/xemacs/files/xemacs-21.4.9-ppc-glibc-2.3.x.diff
@@ -0,0 +1,37 @@
+--- src/alloc.c.orig Mon Dec 17 06:49:22 2001
++++ src/alloc.c Thu Nov 7 00:27:31 2002
+@@ -3882,8 +3890,8 @@
+ #ifdef DOUG_LEA_MALLOC
+ mallopt (M_TRIM_THRESHOLD, 128*1024); /* trim threshold */
+ mallopt (M_MMAP_THRESHOLD, 64*1024); /* mmap threshold */
+-#if 0 /* Moved to emacs.c */
+- mallopt (M_MMAP_MAX, 64); /* max. number of mmap'ed areas */
++#if 1 /* Moved to emacs.c */
++ mallopt (M_MMAP_MAX, 0); /* max. number of mmap'ed areas */
+ #endif
+ #endif
+ init_string_alloc ();
+--- src/emacs.c.orig Thu Oct 31 16:07:36 2002
++++ src/emacs.c Thu Nov 7 00:25:47 2002
+@@ -2713,7 +2713,8 @@
+ if (!initialized)
+ {
+ #ifdef DOUG_LEA_MALLOC
+- mallopt (M_MMAP_MAX, 0);
++ if (mallopt (M_MMAP_MAX, 0) != 1)
++ abort();
+ #endif
+ run_temacs_argc = 0;
+ if (! SETJMP (run_temacs_catch))
+@@ -2770,7 +2771,8 @@
+ defined(_NO_MALLOC_WARNING_) || \
+ (defined(__GLIBC__) && __GLIBC_MINOR__ < 1 && !defined(MULE)) || \
+ defined(DEBUG_DOUG_LEA_MALLOC)
+- mallopt (M_MMAP_MAX, 64);
++ if(mallopt (M_MMAP_MAX, 0) != 1)
++ abort();
+ #endif
+ #ifdef REL_ALLOC
+ r_alloc_reinit ();
+
+