Cygwin declare nanosleep() patch
J. Johnston
jjohnstn@redhat.com
Wed Jan 29 23:31:00 GMT 2003
Patch checked in.
-- Jeff J.
Jason Tishler wrote:
> On Fri, Jan 24, 2003 at 10:39:32PM -0500, Jason Tishler wrote:
>
>>I will try again and do a better job of testing next time.
>
>
> Attached is take 2. This time I tested under both C *and* C++.
>
> Thanks,
> Jason
>
>
>
> ------------------------------------------------------------------------
>
> Index: time.h
> ===================================================================
> RCS file: /cvs/src/src/newlib/libc/include/time.h,v
> retrieving revision 1.11
> diff -u -p -r1.11 time.h
> --- time.h 26 Aug 2002 19:05:48 -0000 1.11
> +++ time.h 29 Jan 2003 18:06:01 -0000
> @@ -163,6 +163,16 @@ int _EXFUN(nanosleep, (const struct time
> #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
>
>
> ------------------------------------------------------------------------
>
> 2003-01-29 Jason Tishler <jason@tishler.net>
>
> * libc/include/time.h: Declare nanosleep() under Cygwin.
More information about the Newlib
mailing list