diff options
author | Mike Frysinger <vapier@gentoo.org> | 2022-03-01 01:14:33 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2022-03-01 01:14:33 -0500 |
commit | 644e8bba07cdb6ca47ebafc766b52951860721d4 (patch) | |
tree | f24729ca51c50a5fadc59e5127fb790f42f41c0d /newlib | |
parent | a531ad97267fa483fa6a9e7543bac331bbf295b9 (diff) | |
download | newlib-644e8bba07cdb6ca47ebafc766b52951860721d4.zip newlib-644e8bba07cdb6ca47ebafc766b52951860721d4.tar.gz newlib-644e8bba07cdb6ca47ebafc766b52951860721d4.tar.bz2 |
newlib: xstormy16: add missing string.h include
Some of these functions are using memcpy & memset from string.h but
not including the header leading to implicit declaration warnings.
Diffstat (limited to 'newlib')
-rw-r--r-- | newlib/libc/machine/xstormy16/tiny-malloc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/newlib/libc/machine/xstormy16/tiny-malloc.c b/newlib/libc/machine/xstormy16/tiny-malloc.c index 597e389..e6f67a8 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 #ifdef DEFINE_REALLOC +#include <string.h> + void * realloc (void *block_p, size_t sz) { @@ -310,6 +312,8 @@ realloc (void *block_p, size_t sz) #endif #ifdef DEFINE_CALLOC +#include <string.h> + void * calloc (size_t n, size_t elem_size) { @@ -509,6 +513,7 @@ pvalloc (size_t sz) #ifdef DEFINE_MALLINFO #include "malloc.h" +#include <string.h> struct mallinfo mallinfo (void) |