diff options
author | anray <anray@FreeBSD.org> | 2007-02-11 04:24:09 +0800 |
---|---|---|
committer | anray <anray@FreeBSD.org> | 2007-02-11 04:24:09 +0800 |
commit | 33890efaad6e9d9f3b723a3738356c0241d5fdee (patch) | |
tree | 9971122a0f80b4c7f8fe9effbcc9f4bb39f1d8b2 /editors/xemacs-devel-mule | |
parent | 350e8317b07ae4950f1e8215614958a871452f38 (diff) | |
download | freebsd-ports-gnome-33890efaad6e9d9f3b723a3738356c0241d5fdee.tar.gz freebsd-ports-gnome-33890efaad6e9d9f3b723a3738356c0241d5fdee.tar.zst freebsd-ports-gnome-33890efaad6e9d9f3b723a3738356c0241d5fdee.zip |
Fix memory limits.
Diffstat (limited to 'editors/xemacs-devel-mule')
-rw-r--r-- | editors/xemacs-devel-mule/Makefile | 1 | ||||
-rw-r--r-- | editors/xemacs-devel-mule/files/patch-emacs.c | 14 | ||||
-rw-r--r-- | editors/xemacs-devel-mule/files/patch-malloc.c | 14 | ||||
-rw-r--r-- | editors/xemacs-devel-mule/files/patch-mem-limits.h | 14 |
4 files changed, 43 insertions, 0 deletions
diff --git a/editors/xemacs-devel-mule/Makefile b/editors/xemacs-devel-mule/Makefile index 14f1f81b0e33..a82bfc7a1e22 100644 --- a/editors/xemacs-devel-mule/Makefile +++ b/editors/xemacs-devel-mule/Makefile @@ -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} diff --git a/editors/xemacs-devel-mule/files/patch-emacs.c b/editors/xemacs-devel-mule/files/patch-emacs.c new file mode 100644 index 000000000000..5dddd1eee092 --- /dev/null +++ b/editors/xemacs-devel-mule/files/patch-emacs.c @@ -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! + diff --git a/editors/xemacs-devel-mule/files/patch-malloc.c b/editors/xemacs-devel-mule/files/patch-malloc.c new file mode 100644 index 000000000000..5c54ac8afd93 --- /dev/null +++ b/editors/xemacs-devel-mule/files/patch-malloc.c @@ -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. diff --git a/editors/xemacs-devel-mule/files/patch-mem-limits.h b/editors/xemacs-devel-mule/files/patch-mem-limits.h new file mode 100644 index 000000000000..362f9c57c3b6 --- /dev/null +++ b/editors/xemacs-devel-mule/files/patch-mem-limits.h @@ -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. */ + |