public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] libgloss: microblaze: fix read and _write declarations
@ 2024-05-14 18:28 Jeff Johnston
0 siblings, 0 replies; only message in thread
From: Jeff Johnston @ 2024-05-14 18:28 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=b59c922f7cd4044f996b6a612250428c5d4da29a
commit b59c922f7cd4044f996b6a612250428c5d4da29a
Author: Neal Frager <neal.frager@amd.com>
Date: Mon May 13 07:24:19 2024 +0100
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>
Diff:
---
libgloss/microblaze/linux-inbyte.c | 2 ++
libgloss/microblaze/linux-outbyte.c | 2 ++
2 files changed, 4 insertions(+)
diff --git a/libgloss/microblaze/linux-inbyte.c b/libgloss/microblaze/linux-inbyte.c
index 58fdf1957..2f8d33871 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 9d7bc4890..46de511f6 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-14 18:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-14 18:28 [newlib-cygwin] libgloss: microblaze: fix read and _write declarations Jeff Johnston
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).