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.
This commit is contained in:
Jeff Law 2023-12-16 21:11:10 -07:00
parent 17a6aff334
commit 57e311e0de
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,8 @@
*/
#include "glue.h"
void print (char *);
/*
* putnum -- print a 32 bit number in hex
*/

View File

@ -14,6 +14,10 @@
* they apply.
*/
#include <stdlib.h>
#include <unistd.h>
int
inbyte ()
{