[PATCH] Add missing headers to fix implicit function defns

Hans-Bernhard Bröker HBBroeker@t-online.de
Mon Jan 16 21:21:00 GMT 2017

Am 16.01.2017 um 01:12 schrieb Pat Pannuto:
> A few files were missing headers for memset/malloc, likely missed
> because the files don't directly call the functions, rather they
> come in via macros in libc/include/sys/reent.h:

Shouldn't then <sys/reent.h> be including <string.h> and <stdlib.h> 
itself, to be done with it?

If a header defines macros which reference things provided by other 
headers, it should make sure those other things are known, i.e. it 
should include those other headers.

More information about the Newlib mailing list