4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-23 15:40:14 +08:00
Neal Frager b59c922f7c libgloss: microblaze: fix read and _write declarations
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>
2024-05-14 14:28:02 -04:00

9 lines
102 B
C

extern int read (int, char *, int);
int inbyte(void)
{
char ch = 0;
read(0, &ch, 1);
return ch;
}