From 0441987e88af1ad9a55cb025f7c8894b7e067522 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Wed, 28 Jul 2010 23:12:38 -0700 Subject: [PATCH] * src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. Remove reference to __osf__, unused. --- src/ChangeLog | 3 +++ src/vm-limit.c | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f3f56c1a7e7..a68019de4f0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2010-07-29 Dan Nicolaescu + * vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. + Remove reference to __osf__, unused. + * mem-limits.h: Remove duplicated includes. (NULL): Remove definition, unused. (POINTER): Remove definition. diff --git a/src/vm-limit.c b/src/vm-limit.c index 71ad82d687e..e0bd77a2516 100644 --- a/src/vm-limit.c +++ b/src/vm-limit.c @@ -25,10 +25,6 @@ along with GNU Emacs. If not, see . */ #include "mem-limits.h" -#ifdef HAVE_GETRLIMIT -#include -#endif - /* Level number of warnings already issued. 0 -- no warnings issued. @@ -100,7 +96,7 @@ get_lim_data (void) } #else -#if !defined (BSD4_2) && !defined (__osf__) && !defined (CYGWIN) +#if !defined (BSD4_2) && !defined (CYGWIN) #ifdef MSDOS void @@ -148,7 +144,7 @@ get_lim_data (void) } #endif /* not MSDOS */ -#else /* BSD4_2 */ +#else /* BSD4_2 || CYGWIN */ static void get_lim_data (void) -- 2.39.2