unable to build hpcboot
Peter Postma <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.hpcarm |
|---|---|
| Message-ID | <[email protected]> |
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
patch
(text/plain, 376 B)
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);
+}