useconds_t and RTEMS

Aaron J. Grier
Thu Jan 25 13:42:00 GMT 2001

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
-#ifdef __CYGWIN__
+#if defined(__rtems__) || defined(__CYGWIN__)
 typedef long useconds_t;
this seems an obvious fix, since unistd.h shows:

#if defined(__CYGWIN__) || defined(__rtems__)
useconds_t _EXFUN(ualarm, (useconds_t __useconds));

  Aaron J. Grier  |   Frye Electronics, Tigard, OR   |
     "In a few thousand years people will be scratching their heads
       wondering how on earth the first computer was invented and
          bootstrapped without a prior computer to do it with."
                    --  Chris Malcolm, on comp.arch

More information about the Newlib mailing list