* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,

too.
This commit is contained in:
Christopher Faylor 2001-04-21 03:22:47 +00:00
parent 3ac6f3a748
commit 8c9df1d571
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Fri Apr 20 23:17:51 2001 Christopher Faylor <cgf@cygnus.com>
* libc/include/sys/time.h: Define timercmp and other macros for
__CYGWIN__, too.
2001-04-20 Jeff Johnston <jjohnstn@redhat.com> 2001-04-20 Jeff Johnston <jjohnstn@redhat.com>
* acinclude.m4: Added --enable-malloc-debugging configure flag. * acinclude.m4: Added --enable-malloc-debugging configure flag.

View File

@ -39,7 +39,7 @@ struct itimerval {
}; };
/* BSD time macros used by RTEMS code */ /* BSD time macros used by RTEMS code */
#if defined(__rtems__) #if defined (__rtems__) || defined (__CYGWIN__)
/* Convenience macros for operations on timevals. /* Convenience macros for operations on timevals.
NOTE: `timercmp' does not work for >= or <=. */ NOTE: `timercmp' does not work for >= or <=. */
@ -68,7 +68,7 @@ struct itimerval {
(result)->tv_usec += 1000000; \ (result)->tv_usec += 1000000; \
} \ } \
} while (0) } while (0)
#endif #endif /* defined (__rtems__) || defined (__CYGWIN__) */
int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z)); int _EXFUN(gettimeofday, (struct timeval *__p, struct timezone *__z));
int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *)); int _EXFUN(settimeofday, (const struct timeval *, const struct timezone *));