From 4700b8293a51a466b9558244c376ff1e614de80e Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 29 Jan 2003 23:29:30 +0000 Subject: 2003-01-29 Jason Tishler * libc/include/time.h: Declare nanosleep() under Cygwin. --- newlib/libc/include/time.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'newlib/libc') 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 -- cgit v1.2.3