This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: useconds_t and RTEMS
- From: Christopher Faylor <cgf at redhat dot com>
- To: "Aaron J. Grier" <aaron at frye dot com>, newlib at sources dot redhat dot com
- Date: Fri, 30 Nov 2001 17:22:23 -0500
- Subject: Re: useconds_t and RTEMS
- References: <20011130140912.M11924@aaron.internal>
On Fri, Nov 30, 2001 at 02:09:12PM -0800, Aaron J. Grier wrote:
>Index: newlib/libc/include/sys/types.h
>===================================================================
>RCS file: /cvs/src/src/newlib/libc/include/sys/types.h,v
>retrieving revision 1.8
>diff -u -r1.8 types.h
>--- types.h 2001/11/28 00:16:58 1.8
>+++ types.h 2001/11/30 22:03:52
>@@ -218,7 +218,7 @@
> #define __timer_t_defined
> #endif
>
>-#ifdef __CYGWIN__
>+#if defined(__rtems__) || defined(__CYGWIN__)
> typedef long useconds_t;
> #endif
>
>this seems an obvious fix, since unistd.h shows:
>
>#if defined(__CYGWIN__) || defined(__rtems__)
>[...]
>useconds_t _EXFUN(ualarm, (useconds_t __useconds));
Do you know for a fact that rtems has ualarm? If so, why wasn't
this defined already?
I just added this call for cygwin on Tuesday. If anything
it seems like the ualarm declaration should be protected with
an ifdef __CYGWIN__ .
cgf