[PATCH 1/1] common: rename getc() to getchar()

Tom Rini trini at konsulko.com
Fri Oct 23 02:27:36 CEST 2020


On Wed, Oct 07, 2020 at 06:11:48PM +0200, Heinrich Schuchardt wrote:

> The sandbox is built with the SDL2 library with invokes the X11 library
> which in turn calls getc(). But getc() in glibc is defined as
> 
>     int getc(FILE *)
> 
> This does not match our definition.
> 
>     int getc(void)
> 
> The sandbox crashes when called with parameter -l.
> 
> Rename our library symbol getc() to getchar().
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20201022/99e44332/attachment.sig>


More information about the U-Boot mailing list