From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2152) id 127913858031; Thu, 18 Feb 2021 01:06:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 127913858031 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Hans-Peter Nilsson To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Include malloc.h in libc/stdlib/aligned_alloc.c X-Act-Checkin: newlib-cygwin X-Git-Author: Hans-Peter Nilsson X-Git-Refname: refs/heads/master X-Git-Oldrev: ff4440fcf7687d9af05f4c2fcb163fca5b2167f9 X-Git-Newrev: c1a565c3966c7a13a13e2c73b49e4ed4c21f4d0c Message-Id: <20210218010612.127913858031@sourceware.org> Date: Thu, 18 Feb 2021 01:06:12 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Feb 2021 01:06:12 -0000 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c1a565c3966c7a13a13e2c73b49e4ed4c21f4d0c commit c1a565c3966c7a13a13e2c73b49e4ed4c21f4d0c Author: Hans-Peter Nilsson Date: Tue Feb 16 17:42:01 2021 +0100 Include malloc.h in libc/stdlib/aligned_alloc.c Without this, for a bare-iron/simulator target such as cris-elf, you'll see, at newlib build time: /x/gccobj/./gcc/xgcc -B/x/gccobj/./gcc/ -c -o lib_a-aligned_alloc.o \ `test -f 'aligned_alloc.c' || echo '/y/newlib/libc/stdlib/'`aligned_alloc.c /y/newlib/libc/stdlib/aligned_alloc.c: In function 'aligned_alloc': /y/newlib/libc/stdlib/aligned_alloc.c:35:10: warning: implicit declaration of function \ '_memalign_r' [-Wimplicit-function-declaration] 35 | return _memalign_r (_REENT, align, size); | ^~~~~~~~~~~ Diff: --- newlib/libc/stdlib/aligned_alloc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/newlib/libc/stdlib/aligned_alloc.c b/newlib/libc/stdlib/aligned_alloc.c index feb22c24b..06b3883cf 100644 --- a/newlib/libc/stdlib/aligned_alloc.c +++ b/newlib/libc/stdlib/aligned_alloc.c @@ -28,6 +28,7 @@ #include #include +#include void * aligned_alloc (size_t align, size_t size)