Subject: Re: malloc.h [was Re: graphics/gle on fbsd 5.2.1-rc]
To: Dan Winship <>
From: Michal Pasternak <>
List: tech-pkg
Date: 03/31/2004 02:32:24
Dan Winship [Tue, Mar 30, 2004 at 07:05:25PM -0500]:
> Yeah, I've been wondering what to do about this on OS X too (which has 
> no malloc.h at all). There are some packages that would need 10-20 
> patches to fix all occurrences of #include <malloc.h>. I was thinking 
> it would be better to just patch a new one-line malloc.h ("#include 
> <stdlib.h>") into the source tree though

3 solutions.

 * create package called, for example, "fix-includes", and make whole
   pkgsrc include it as BUILD_DEPEND for FreeBSD 5 and MacOS X. It would
   include bl[23] files that would symlink malloc.h to stdlib.h 
 * make the symlinking quietly, inside bl2/3, for those 2 platforms
 * patch the packages:
   - FreeBSD says "malloc.h has been depreciated". I wonder, if the standard,
     that depreciates this has some wide recognition, or is it only a
       - in the first case, include a temporary solution via bl2/3,
         and wait for updated versions of packages
       - in 2nd case, patch the packages. Much work, which could - I suppose -
         be hardly accepted by developers. 

Any other ideas?

Take care,
Michal Pasternak :: ::