This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Aug 24 15:30, Sebastian Huber wrote: > Let systems optionally provide the _CLOCK_T_ type via > <machine/_types.h>. > > Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de> > --- > newlib/libc/include/sys/_types.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/newlib/libc/include/sys/_types.h b/newlib/libc/include/sys/_types.h > index 98b93ce71..d27979c9d 100644 > --- a/newlib/libc/include/sys/_types.h > +++ b/newlib/libc/include/sys/_types.h > @@ -180,7 +180,10 @@ typedef _LOCK_RECURSIVE_T _flock_t; > typedef void *_iconv_t; > #endif > > +#ifndef __machine_clock_t_defined > #define _CLOCK_T_ unsigned long /* clock() */ > +#endif > + > typedef _CLOCK_T_ __clock_t; > > #define _TIME_T_ long /* time() */ > -- > 2.12.3 ACK Thanks, Corinna -- Corinna Vinschen Cygwin Maintainer Red Hat
Attachment:
signature.asc
Description: PGP signature
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |