From c670aeee3df9186902dba07b76bd2de0776df390 Mon Sep 17 00:00:00 2001 From: Heinrich Schuchardt Date: Wed, 7 Oct 2020 18:11:48 +0200 Subject: common: rename getc() to getchar() 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 Reviewed-by: Tom Rini Reviewed-by: Simon Glass --- include/stdio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stdio.h') diff --git a/include/stdio.h b/include/stdio.h index aedf374..039f7df 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -5,7 +5,7 @@ #include /* stdin */ -int getc(void); +int getchar(void); int tstc(void); /* stdout */ -- cgit v1.1