diff src/sheap.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 3ecd8885ac67
children 183866b06e0b
line wrap: on
line diff
--- a/src/sheap.c	Mon Aug 13 11:33:40 2007 +0200
+++ b/src/sheap.c	Mon Aug 13 11:35:02 2007 +0200
@@ -19,8 +19,8 @@
 02111-1307, USA.*/
 
 #include <config.h>
-#include <stdio.h>
 #include "lisp.h"
+
 #include <unistd.h>
 #include <sheap-adjust.h>
 
@@ -40,6 +40,7 @@
 int 	static_heap_initialized=0;
 int 	static_heap_dumped=0;
 
+void* more_static_core ( ptrdiff_t increment );
 void* more_static_core ( ptrdiff_t increment )
 {
   int size = (int) increment;
@@ -58,7 +59,7 @@
       static_heap_ptr=static_heap_base;
       static_heap_size=STATIC_HEAP_SIZE -
 	(static_heap_base-static_heap_buffer);
-#ifdef __CYGWIN32__
+#ifdef CYGWIN
       sbrk(BLOCKSIZE);		/* force space for fork to work */
 #endif
       static_heap_initialized=1;
@@ -119,6 +120,7 @@
   fclose (stream);
 }
 
+void report_sheap_usage (int die_if_pure_storage_exceeded);
 void
 report_sheap_usage (int die_if_pure_storage_exceeded)
 {