mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-23 15:40:14 +08:00
b59c922f7c
This patch resolves the following build error which occurs with gcc 14.1.0: ../../.././libgloss/microblaze/linux-outbyte.c: In function 'outbyte': ../../.././libgloss/microblaze/linux-outbyte.c:3:9: error: implicit declaration of function '_write' [-Wimplicit-function-declaration] 3 | _write(1, &c, 1); Signed-off-by: Neal Frager <neal.frager@amd.com>
9 lines
102 B
C
9 lines
102 B
C
extern int read (int, char *, int);
|
|
|
|
int inbyte(void)
|
|
{
|
|
char ch = 0;
|
|
read(0, &ch, 1);
|
|
return ch;
|
|
}
|