libgloss/arm clock [PATCH]

Paul Brook paul@codesourcery.com
Thu Dec 8 17:43:00 GMT 2005


On Wednesday 30 November 2005 23:40, Jeff Johnston wrote:
> Patch checked in with minor modification (I added a prototype for _clock
> as was done for _isatty).
>
> -- Jeff J.
>
> Shaun Jackman wrote:
> > This patch provides clock, sleep, and usleep for libgloss/arm. Please
> > apply.
> >
> > Cheers,
> > Shaun
> >
> > 2005-11-28  Shaun Jackman  <sjackman@gmail.com>
> >
> > 	* arm/libcfunc.c (clock, sleep, usleep): New function.
> > 	* arm/syscalls.c (_clock): New function.
> > 	(_times): Call clock.

This breaks arm-none-eabi (and probably also arm-none-elf) with 
libgloss/arm/libcfunc.c:81: error: syntax error before "useconds"

The definition of useconds_t in newlib/libc/include/sys/types.h is conditional 
on #if defined(__CYGWIN__) || defined(__rtems__)

Paul



More information about the Newlib mailing list