diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 29bd68cc0..087e6a655 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2003-01-29 Jason Tishler + + * libc/include/time.h: Declare nanosleep() under Cygwin. + 2003-01-24 Nick Clifton * Add sh2e support: diff --git a/newlib/libc/include/time.h b/newlib/libc/include/time.h index 53e3c4e89..f83c38d05 100644 --- a/newlib/libc/include/time.h +++ b/newlib/libc/include/time.h @@ -163,6 +163,16 @@ int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); #ifdef __cplusplus } #endif +#else +#ifdef __CYGWIN__ +#ifdef __cplusplus +extern "C" { +#endif +int _EXFUN(nanosleep, (const struct timespec *rqtp, struct timespec *rmtp)); +#ifdef __cplusplus +} +#endif +#endif /* __CYGWIN__ */ #endif /* _POSIX_TIMERS */ #ifdef __cplusplus