pkgsrc/lang/cu-prolog/patches/patch-ae
2004-07-04 16:18:14 +00:00

32 lines
783 B
Text

$NetBSD: patch-ae,v 1.3 2004/07/04 16:18:14 jschauma Exp $
--- main.c.orig 1995-01-27 08:38:48.000000000 +0100
+++ main.c 2004-07-03 21:32:55.000000000 +0200
@@ -33,7 +33,7 @@
struct itrace *newflist_save;
-void main(argc,argv)
+int main(argc,argv)
int argc;
char *argv[];
{
@@ -303,13 +303,16 @@
void heap_realloc() /* reallocate system/user heaps */
{
+#if SUN4 == 1
cfree((char *)sheap); SHEAP_SIZE=SHEAP_SIZE*1.2; system_heap_alloc();
-/* free(heap); HEAP_SIZE *= 1.2;
+#else
+ free(heap); HEAP_SIZE *= 1.2;
free(cheap); CHEAP_SIZE *= 1.2;
free(eheap); ESP_SIZE *= 1.2;
free(ustack); USTACK_SIZE *= 1.2;
free(nheap); NAME_SIZE *= 1.2;
- heap_alloc(); */
+ heap_alloc();
+#endif /* SUN4 */
init_status();
}