]> sourceware.org Git - newlib-cygwin.git/commitdiff
Re: Fix moxie libgloss issues with c99
authorJeff Law <jeffreyalaw@gmail.com>
Sun, 17 Dec 2023 04:11:10 +0000 (21:11 -0700)
committerJeff Law <jeffreyalaw@gmail.com>
Sun, 17 Dec 2023 04:11:10 +0000 (21:11 -0700)
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.

libgloss/moxie/putnum.c
libgloss/moxie/sim-inbyte.c

index 0f7e89453418c88a8d19ad402e39e0f65cea3aeb..9af5b4d4c56bf27a7c49395c4c18cd67fcb6cbc8 100644 (file)
@@ -14,6 +14,8 @@
  */
 #include "glue.h"
 
+void print (char *);
+
 /*
  * putnum -- print a 32 bit number in hex
  */
index 1e7466a8d2cb874aa573bb15a89d47be66b46202..4cda6604a8461347b35c4862b3d45bdff4a7964c 100644 (file)
  * they apply.
  */
 
+#include <stdlib.h>
+
+#include <unistd.h>
+
 int
 inbyte ()
 {
This page took 0.030493 seconds and 5 git commands to generate.