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:
parent
17a6aff334
commit
57e311e0de
|
@ -14,6 +14,8 @@
|
||||||
*/
|
*/
|
||||||
#include "glue.h"
|
#include "glue.h"
|
||||||
|
|
||||||
|
void print (char *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* putnum -- print a 32 bit number in hex
|
* putnum -- print a 32 bit number in hex
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
* they apply.
|
* they apply.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
int
|
int
|
||||||
inbyte ()
|
inbyte ()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue