Skip to content

Commit b59c922

Browse files
nealfragerjjohnstn
authored andcommitted
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 <[email protected]>
1 parent 4becae7 commit b59c922

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libgloss/microblaze/linux-inbyte.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
extern int read (int, char *, int);
2+
13
int inbyte(void)
24
{
35
char ch = 0;

libgloss/microblaze/linux-outbyte.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
extern int _write (int, char *, int);
2+
13
void outbyte (unsigned char c)
24
{
35
_write(1, &c, 1);

0 commit comments

Comments
 (0)