Mercurial > hg > xemacs-beta
diff src/mem-limits.h @ 243:f220cc83d72e r20-5b20
Import from CVS: tag r20-5b20
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:17:07 +0200 |
parents | 557eaa0339bf |
children | 677f6a0ee643 |
line wrap: on
line diff
--- a/src/mem-limits.h Mon Aug 13 10:16:17 2007 +0200 +++ b/src/mem-limits.h Mon Aug 13 10:17:07 2007 +0200 @@ -20,6 +20,13 @@ /* Synched up with: FSF 19.30. */ +/* #### This ancient code really sucks. + configure should check for: + HAVE_SYS_RESOURCE_H, HAVE_ULIMIT_H, HAVE_GETRLIMIT, HAVE_ULIMIT, + and select action based on those values. + getrlimit() should be preferred to ulimit(). + On Linux, ulimit() is deprecated and always returns -1. */ + #ifndef _XEMACS_MEM_LIMITS_H_ #define _XEMACS_MEM_LIMITS_H_ @@ -47,7 +54,7 @@ extern int etext, __data_start; weak_symbol (__data_start) #define start_of_data() (&__data_start ?: &etext) -#else /* not _LIBC */ +#else /* not GNU libc */ #if defined (__osf__) && (defined (__mips) || defined (mips) || defined (__alpha)) #include <sys/time.h>