Subject: Re: FreeBSD misses malloc.h
To: Jeremy C. Reed <reed@reedmedia.net>
From: Julio M. Merino Vidal <jmmv@menta.net>
List: tech-pkg
Date: 07/23/2003 18:34:47
On Wed, 23 Jul 2003 09:29:19 -0700 (PDT)
"Jeremy C. Reed" <reed@reedmedia.net> wrote:

> On Wed, 23 Jul 2003, Julio M. Merino Vidal wrote:
> 
> > I see several PRs that attempt to fix the build of packages in FreeBSD.
> 
> I am curious: Do you have any PR numbers?
> I could only quickly find:
> #21913: pkgsrc/graphics/gle doesn't build on FreeBSD + fix

21479  21909  21912

> FreeBSD's ports/graphics/gle/Makefile has:
> 
> post-patch:
> .for file in ex_angle.c ex_cut_round.c ex_raw.c extrude.c round_cap.c segment.c texgen.c
>         @${REINPLACE_CMD} -e "s/malloc.h/stdlib.h/g" ${WRKSRC}/src/${file}
> .endfor
> 
> ports/games/tinymux/Makefile does similar:
> @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' ${WRKSRC}/udb_ochunk.c
> 
> ports/graphics/ImageMagick uses:
> @${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' ${WRKSRC}/ltdl/ltdl.c
> 
> And many other FreeBSD ports do this too.

But what about systems that have the malloc.h header and need it?

-- 
Julio M. Merino Vidal <jmmv@menta.net>
The NetBSD Project - http://www.NetBSD.org/