aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mem-limits.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mem-limits.h b/src/mem-limits.h
index d4e743f6ed2..7cdb7f83b31 100644
--- a/src/mem-limits.h
+++ b/src/mem-limits.h
@@ -17,6 +17,12 @@ You should have received a copy of the GNU General Public License
17along with GNU Emacs; see the file COPYING. If not, write to 17along with GNU Emacs; see the file COPYING. If not, write to
18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ 18the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
19 19
20#ifdef _LIBC
21
22#include <sys/resource.h>
23
24#else
25
20#if defined(__osf__) && (defined(__mips) || defined(mips)) 26#if defined(__osf__) && (defined(__mips) || defined(mips))
21#include <sys/time.h> 27#include <sys/time.h>
22#include <sys/resource.h> 28#include <sys/resource.h>
@@ -35,6 +41,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
35#include <sys/resource.h> 41#include <sys/resource.h>
36#endif /* BSD4_2 */ 42#endif /* BSD4_2 */
37 43
44#endif /* _LIBC */
45
38#ifdef emacs 46#ifdef emacs
39/* The important properties of this type are that 1) it's a pointer, and 47/* The important properties of this type are that 1) it's a pointer, and
40 2) arithmetic on it should work as if the size of the object pointed 48 2) arithmetic on it should work as if the size of the object pointed