Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-04-21 07:22:47 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-21 07:22:47 +0400
commit8c9df1d571708c654822dd55e67e8d7ffc989dc5 (patch)
tree7504953266aefb4e502691512807edb96e9b17b1 /newlib/libc
parent3ac6f3a7487b9e231d4d83056685a5b1349d2deb (diff)
* libc/include/sys/time.h: Define timercmp and other macros for __CYGWIN__,
too.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/sys/time.h4
1 files changed, 2 insertions, 2 deletions
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 *));