From: Dan Nicolaescu Date: Thu, 29 Jul 2010 06:12:38 +0000 (-0700) Subject: * src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~49^2~106 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0441987e88af1ad9a55cb025f7c8894b7e067522;p=emacs.git * src/vm-limit.c: Do not include sys/resource.h, mem-limits.h does it. Remove reference to __osf__, unused. --- 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)