This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH] Fix build problem with eCos/newlib (PR 78110)
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Bernd Edlinger <bernd dot edlinger at hotmail dot de>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 26 Oct 2016 17:30:32 +0100
- Subject: Re: [PATCH] Fix build problem with eCos/newlib (PR 78110)
- Authentication-results: sourceware.org; auth=none
- References: <HE1PR0701MB2169313C5EA68794991DAD09E4AB0@HE1PR0701MB2169.eurprd07.prod.outlook.com>
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.