[PATCH] Fix build problem with eCos/newlib (PR 78110)

Jonathan Wakely jwakely@redhat.com
Wed Oct 26 16:30:00 GMT 2016

On 26/10/16 16:26 +0000, Bernd Edlinger wrote:
>	* libsupc++/new_opa.cc: Don't include <malloc.h> in a free standing
>	environmnet.  Declare memalign directly in that case.

Typo "environmnet".

OK for trunk, thanks.

We might actually want to avoid <malloc.h> in other cases, as some
systems have a #warning in <malloc.h> saying it's deprecated ...
although they probably have aligned_alloc or posix_memalign anyway so
we won't try to use memalign.

More information about the Gcc-patches mailing list