1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00

Fix memory limits.

This commit is contained in:
Andrey Slusar 2007-02-10 20:24:09 +00:00
parent 9a43fd3225
commit 21990585fb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=184805
4 changed files with 43 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= xemacs-devel-mule
PORTVERSION= ${XEMACS_VER:S/-/./}
PORTREVISION= 1
CATEGORIES+= editors
MASTER_SITES= ${MASTER_SITE_XEMACS}
MASTER_SITE_SUBDIR= xemacs-${XEMACS_REL}

View File

@ -0,0 +1,14 @@
--- src/emacs.c.orig Sat Aug 19 08:26:45 2006
+++ src/emacs.c Sat Aug 19 08:27:35 2006
@@ -592,7 +592,11 @@
/* Number of bytes of writable memory we can expect to be able to get:
Leave this as an unsigned int because it could potentially be 4G */
+#ifdef _RLIM_T_DECLARED
+rlim_t lim_data;
+#else
unsigned long lim_data;
+#endif
/* WARNING!

View File

@ -0,0 +1,14 @@
--- src/malloc.c.orig Tue Oct 25 14:16:26 2005
+++ src/malloc.c Sat Aug 19 08:25:42 2006
@@ -285,7 +285,11 @@
static char busy[30];
/* Number of bytes of writable memory we can expect to be able to get */
+#ifdef _RLIM_T_DECLARED
+extern rlim_t lim_data;
+#else
extern unsigned long lim_data;
+#endif
/* Level number of warnings already issued.
0 -- no warnings issued.

View File

@ -0,0 +1,14 @@
--- src/mem-limits.h.orig Sat Sep 11 08:28:41 2004
+++ src/mem-limits.h Sat Aug 19 08:23:52 2006
@@ -80,7 +80,11 @@
static POINTER data_space_start;
/* Number of bytes of writable memory we can expect to be able to get */
+#ifdef _RLIM_T_DECLARED
+extern rlim_t lim_data;
+#else
extern unsigned long lim_data;
+#endif
/* The implementation of get_lim_data() is very machine dependent. */