From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1521) id 5BDB93858D20; Tue, 1 Mar 2022 06:15:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5BDB93858D20 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Frysinger To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] newlib: xstormy16: add missing string.h include X-Act-Checkin: newlib-cygwin X-Git-Author: Mike Frysinger X-Git-Refname: refs/heads/master X-Git-Oldrev: a531ad97267fa483fa6a9e7543bac331bbf295b9 X-Git-Newrev: 644e8bba07cdb6ca47ebafc766b52951860721d4 Message-Id: <20220301061553.5BDB93858D20@sourceware.org> Date: Tue, 1 Mar 2022 06:15:53 +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: Tue, 01 Mar 2022 06:15:53 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D644e8bba07c= db6ca47ebafc766b52951860721d4 commit 644e8bba07cdb6ca47ebafc766b52951860721d4 Author: Mike Frysinger Date: Tue Mar 1 01:14:33 2022 -0500 newlib: xstormy16: add missing string.h include =20 Some of these functions are using memcpy & memset from string.h but not including the header leading to implicit declaration warnings. Diff: --- newlib/libc/machine/xstormy16/tiny-malloc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/newlib/libc/machine/xstormy16/tiny-malloc.c b/newlib/libc/mach= ine/xstormy16/tiny-malloc.c index 597e389dc..e6f67a886 100644 --- a/newlib/libc/machine/xstormy16/tiny-malloc.c +++ b/newlib/libc/machine/xstormy16/tiny-malloc.c @@ -271,6 +271,8 @@ free (void *block_p) #endif =20 #ifdef DEFINE_REALLOC +#include + void * realloc (void *block_p, size_t sz) { @@ -310,6 +312,8 @@ realloc (void *block_p, size_t sz) #endif =20 #ifdef DEFINE_CALLOC +#include + void * calloc (size_t n, size_t elem_size) { @@ -509,6 +513,7 @@ pvalloc (size_t sz) =20 #ifdef DEFINE_MALLINFO #include "malloc.h" +#include =20 struct mallinfo=20 mallinfo (void)