Skip to content

Commit

Permalink
libgloss: microblaze: fix read and _write declarations
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nealfrager authored and jjohnstn committed May 14, 2024
1 parent 4becae7 commit b59c922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libgloss/microblaze/linux-inbyte.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extern int read (int, char *, int);

int inbyte(void)
{
char ch = 0;
Expand Down
2 changes: 2 additions & 0 deletions libgloss/microblaze/linux-outbyte.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
extern int _write (int, char *, int);

void outbyte (unsigned char c)
{
_write(1, &c, 1);
Expand Down

0 comments on commit b59c922

Please sign in to comment.