This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cygwin declare nanosleep() patch


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]