Browse Source

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.
users/vapier/wip
Jeff Law 3 years ago
parent
commit
57e311e0de
  1. 2
      libgloss/moxie/putnum.c
  2. 4
      libgloss/moxie/sim-inbyte.c

2
libgloss/moxie/putnum.c

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

4
libgloss/moxie/sim-inbyte.c

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

Loading…
Cancel
Save