From 8c9df1d571708c654822dd55e67e8d7ffc989dc5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 21 Apr 2001 03:22:47 +0000 Subject: [PATCH] * libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__, too. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/time.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index acd41e5a2..de33e6075 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +Fri Apr 20 23:17:51 2001 Christopher Faylor + + * libc/include/sys/time.h: Define timercmp and other macros for + __CYGWIN__, too. + 2001-04-20 Jeff Johnston * acinclude.m4: Added --enable-malloc-debugging configure flag. diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 881998382..20f2903c3 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -39,7 +39,7 @@ struct itimerval { }; /* BSD time macros used by RTEMS code */ -#if defined(__rtems__) +#if defined (__rtems__) || defined (__CYGWIN__) /* Convenience macros for operations on timevals. NOTE: `timercmp' does not work for >= or <=. */ @@ -68,7 +68,7 @@ struct itimerval { (result)->tv_usec += 1000000; \ } \ } while (0) -#endif +#endif /* defined (__rtems__) || defined (__CYGWIN__) */ int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); -- 2.43.5