summaryrefslogtreecommitdiff
path: root/cad/fasthenry/patches/patch-av
blob: ee5dae89bf6f0197545588ad49b60efc6577a1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-av,v 1.3 2006/06/21 14:58:08 minskim Exp $

--- src/zbuf/uglieralloc.c.orig	2004-08-03 22:17:23.000000000 +0000
+++ src/zbuf/uglieralloc.c
@@ -54,6 +54,8 @@ operation of Software or Licensed Progra
  - no attempt is made to make allocation efficient in terms of virtual pages
 */
 #include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
 
 #define NALLOC 8184		/* >= sizeof(HEADER)*NALLOC bytes sbrk()'d */
 #define MAGICN 0xaaaaaaaaL	/* used to check fidelity of allocated blks */
@@ -92,8 +94,6 @@ typedef union header HEADER;
   - an alternative to mocore() but should only be used if sbrk() doesnt zero
 */
 #define MORECORE(SIZE) (HEADER *)calloc(1, SIZE*sizeof(HEADER))
-char *calloc();
-char *malloc();
 
 static HEADER *base = NULL;    	/* base of allocated block list */
 static HEADER *allocp = NULL;	/* last allocated block */