Subject: unable to build hpcboot
To: None <port-hpcarm@NetBSD.org>
From: Peter Postma <peter@pointless.nl>
List: port-hpcarm
Date: 02/19/2006 13:53:11
--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I can't build hpcboot anymore since the free/dealloc changes:

Linking...
libsa.lib(winblk.obj) : error LNK2019: unresolved external symbol dealloc referenced in function winblkopen
libsa.lib(ufs.obj) : error LNK2019: unresolved external symbol dealloc referenced in function ufs_open
..\compile\ARMRelease/hpcboot.exe : fatal error LNK1120: 1 unresolved externals


The attach patch seems to solve it, but I'm wondering... is this the right
thing to do?

-- 
Peter Postma

--BXVAT5kNtrzKuDFl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=patch

Index: alloc.c
===================================================================
RCS file: /cvsroot/src/sys/arch/hpc/stand/libsa/alloc.c,v
retrieving revision 1.3
diff -u -r1.3 alloc.c
--- alloc.c	25 Jan 2006 18:28:26 -0000	1.3
+++ alloc.c	19 Feb 2006 12:52:28 -0000
@@ -44,3 +44,9 @@
 {
 	return malloc(size);
 }
+
+void
+dealloc(void *ptr, size_t size)
+{
+	free(ptr);
+}

--BXVAT5kNtrzKuDFl--