]> sourceware.org Git - newlib-cygwin.git/commit
Include malloc.h in libc/stdlib/aligned_alloc.c
authorHans-Peter Nilsson <hp@axis.com>
Tue, 16 Feb 2021 16:42:01 +0000 (17:42 +0100)
committerHans-Peter Nilsson <hp@bitrange.com>
Thu, 18 Feb 2021 01:05:47 +0000 (02:05 +0100)
commitc1a565c3966c7a13a13e2c73b49e4ed4c21f4d0c
treebf5ceb6432be2580060cceb63d3ac32f83f8e853
parentff4440fcf7687d9af05f4c2fcb163fca5b2167f9
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/ <many options elided> -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);
      |          ^~~~~~~~~~~
newlib/libc/stdlib/aligned_alloc.c
This page took 0.02663 seconds and 5 git commands to generate.