public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Re: Fix moxie libgloss issues with c99
@ 2023-12-17 4:11 Jeff Law
0 siblings, 0 replies; only message in thread
From: Jeff Law @ 2023-12-17 4:11 UTC (permalink / raw)
To: newlib-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=57e311e0deb23492edc94518c78cc57a224dbad9
commit 57e311e0deb23492edc94518c78cc57a224dbad9
Author: Jeff Law <jeffreyalaw@gmail.com>
Date: Sat Dec 16 21:11:10 2023 -0700
Re: Fix moxie libgloss issues with c99
Two libgloss issues specific to moxie-elf that show up build with GCC trunk.
First, putnum.c uses "print" without a prototype. So I added one based on the
function's definition in print.c. Second sim-inbyte.c uses read, which comes
from unistd.h, so this adds a suitable #include.
Diff:
---
libgloss/moxie/putnum.c | 2 ++
libgloss/moxie/sim-inbyte.c | 4 ++++
2 files changed, 6 insertions(+)
diff --git a/libgloss/moxie/putnum.c b/libgloss/moxie/putnum.c
index 0f7e89453..9af5b4d4c 100644
--- a/libgloss/moxie/putnum.c
+++ b/libgloss/moxie/putnum.c
@@ -14,6 +14,8 @@
*/
#include "glue.h"
+void print (char *);
+
/*
* putnum -- print a 32 bit number in hex
*/
diff --git a/libgloss/moxie/sim-inbyte.c b/libgloss/moxie/sim-inbyte.c
index 1e7466a8d..4cda6604a 100644
--- a/libgloss/moxie/sim-inbyte.c
+++ b/libgloss/moxie/sim-inbyte.c
@@ -14,6 +14,10 @@
* they apply.
*/
+#include <stdlib.h>
+
+#include <unistd.h>
+
int
inbyte ()
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-12-17 4:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-17 4:11 [newlib-cygwin] Re: Fix moxie libgloss issues with c99 Jeff Law
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).