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

2020-10-22 Thread Tom Rini
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)

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

2020-10-07 Thread Simon Glass
Hi Heinrich, On Wed, 7 Oct 2020 at 10:12, 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)

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

2020-10-07 Thread Tom Rini
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)

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

2020-10-07 Thread Heinrich Schuchardt
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()