diff src/malloc.c @ 169:15872534500d r20-3b11

Import from CVS: tag r20-3b11
author cvs
date Mon, 13 Aug 2007 09:46:53 +0200
parents ac2d302a0011
children 41ff10fd062f
line wrap: on
line diff
--- a/src/malloc.c	Mon Aug 13 09:45:48 2007 +0200
+++ b/src/malloc.c	Mon Aug 13 09:46:53 2007 +0200
@@ -171,6 +171,10 @@
 /* Define getpagesize () if the system does not.  */
 #include "getpagesize.h"
 
+#ifdef HAVE_ULIMIT_H
+#include <ulimit.h>
+#endif
+
 #ifndef BSD4_2
 #ifndef USG
 #include <sys/vlimit.h>		/* warn the user when near the end */
@@ -301,7 +305,7 @@
 
 char *_malloc_base;
 
-static void getpool ();
+static void getpool (void);
 
 /* Cause reinitialization based on job parameters;
   also declare where the end of pure storage is. */
@@ -447,7 +451,7 @@
 }
 
 static void
-getpool ()
+getpool (void)
 {
   int nu;
   char *cp = sbrk (0);
@@ -798,8 +802,6 @@
 static void
 get_lim_data ()
 {
-  extern long ulimit ();
-    
 #ifdef ULIMIT_BREAK_VALUE
   lim_data = ULIMIT_BREAK_VALUE;
 #else