diff options
author | Neal Frager <neal.frager@amd.com> | 2024-05-13 07:24:19 +0100 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2024-05-14 14:28:02 -0400 |
commit | b59c922f7cd4044f996b6a612250428c5d4da29a (patch) | |
tree | e4c4505df3a29605e0a1efcdcacc56f12f8eab78 /libgloss | |
parent | 4becae7bd833e183c789821a477f25898ed0db1f (diff) | |
download | newlib-b59c922f7cd4044f996b6a612250428c5d4da29a.zip newlib-b59c922f7cd4044f996b6a612250428c5d4da29a.tar.gz newlib-b59c922f7cd4044f996b6a612250428c5d4da29a.tar.bz2 |
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>
Diffstat (limited to 'libgloss')
-rw-r--r-- | libgloss/microblaze/linux-inbyte.c | 2 | ||||
-rw-r--r-- | libgloss/microblaze/linux-outbyte.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/microblaze/linux-inbyte.c b/libgloss/microblaze/linux-inbyte.c index 58fdf19..2f8d338 100644 --- a/libgloss/microblaze/linux-inbyte.c +++ b/libgloss/microblaze/linux-inbyte.c @@ -1,3 +1,5 @@ +extern int read (int, char *, int); + int inbyte(void) { char ch = 0; diff --git a/libgloss/microblaze/linux-outbyte.c b/libgloss/microblaze/linux-outbyte.c index 9d7bc48..46de511 100644 --- a/libgloss/microblaze/linux-outbyte.c +++ b/libgloss/microblaze/linux-outbyte.c @@ -1,3 +1,5 @@ +extern int _write (int, char *, int); + void outbyte (unsigned char c) { _write(1, &c, 1); |