malloc

Juan Manuel Palacios jmpp at macports.org
Tue Mar 20 00:46:42 PDT 2007


On Mar 19, 2007, at 10:29 PM, Yves de Champlain wrote:

> Hi
>
> There is no malloc.h in Darwin, but everything malloc.h provides is 
> provided (I'm sure) by libSystem (I think)


	malloc.h is a "Linuxism" that personally I do not understand, there's 
stdlib.h containing all the needed memory allocation function 
prototypes and declarations as the standard mandates, even on Linux! 
(which means that not even on that platform using malloc.h is 
necessary, as, again, there's stdlib.h)

>
> However, configure will always fail looking for malloc.h, so wouldn't 
> it be a good idea to have macports install a dummy malloc.h  ?


	I personally don't think this is a good solution (first of all, to 
what particular problem?). If a configure script is failing upon not 
finding malloc.h I'd say that's a problem with the software and should 
be reported to its authors (upstream, not MacPorts).

	Regards,...


-jmpp




More information about the macports-dev mailing list